N,D = map(int, input().split())
XY = [map(int, input().split()) for _ in range(N)]
X,Y = [list(i) for i in zip(*XY)]

s=0
for i in range (N):
  if X[i]*X[i]+Y[i]*Y[i]<=D*D:
    s=s+1
print(s) N,D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D map(int, input().split()) for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) map(int, input().split()) map int input().split() ().split () input split XY = [map(int, input().split()) for _ in range(N)] XY [map(int, input().split()) for _ in range(N)] list(i) for i in zip(*XY) for i in zip(*XY) i zip(*XY) zip *XY XY for i in zip(*XY) list(i) list i X,Y = [list(i) for i in zip(*XY)] X [list(i) for i in zip(*XY)] Y s=0 s 0 for i in range (N):
  if X[i]*X[i]+Y[i]*Y[i]<=D*D:
    s=s+1 i range (N) range N if X[i]*X[i]+Y[i]*Y[i]<=D*D:
    s=s+1 X[i]*X[i]+Y[i]*Y[i]<=D*D X[i]*X[i]+Y[i]*Y[i] X[i]*X[i] X[i] X i X[i] X i Y[i]*Y[i] Y[i] Y i Y[i] Y i D*D D D s=s+1 s s+1 s 1 print(s) print s N,D = map(int, input().split()) map(int, input().split()) N Y = [list(i) for i in zip(*XY)] [list(i) for i in zip(*XY)] Y s=0 0 s X,Y = [list(i) for i in zip(*XY)] [list(i) for i in zip(*XY)] X XY = [map(int, input().split()) for _ in range(N)] [map(int, input().split()) for _ in range(N)] XY s=s+1 s+1 s D = map(int, input().split()) map(int, input().split()) D
N,D = map(int, input().split())
XY = [map(int, input().split()) for _ in range(N)]
X,Y = [list(i) for i in zip(*XY)]

s=0
for i in range (N):
  if X[i]*X[i]+Y[i]*Y[i]<=D*D:
    s=s+1
print(s)