N, D = map(int,input().split())
X, Y = [],[]
for i in range(N):
  x,y = map(int,input().split())
  X.append(x)
  Y.append(y)
assert len(X) == N

print(len([(x,y) for x,y in zip(X,Y) if x ** 2 + y ** 2 <= D ** 2])) N, D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D X, Y = [],[] X [] Y [] for i in range(N):
  x,y = map(int,input().split())
  X.append(x)
  Y.append(y) i range(N) range N x,y = map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y X.append(x) X.append X append x Y.append(y) Y.append Y append y assert len(X) == N len(X) == N len(X) len X N (x,y) for x,y in zip(X,Y) if x ** 2 + y ** 2 <= D ** 2 for x,y in zip(X,Y) if x ** 2 + y ** 2 <= D ** 2 x y zip(X,Y) zip X Y x ** 2 + y ** 2 <= D ** 2 x ** 2 + y ** 2 x ** 2 x 2 y ** 2 y 2 D ** 2 D 2 if x ** 2 + y ** 2 <= D ** 2 (x,y) x y print(len([(x,y) for x,y in zip(X,Y) if x ** 2 + y ** 2 <= D ** 2])) print len([(x,y) for x,y in zip(X,Y) if x ** 2 + y ** 2 <= D ** 2]) len [(x,y) for x,y in zip(X,Y) if x ** 2 + y ** 2 <= D ** 2] D = map(int,input().split()) map(int,input().split()) D X, Y = [],[] [] X N, D = map(int,input().split()) map(int,input().split()) N Y = [],[] [] Y y = map(int,input().split()) map(int,input().split()) y x,y = map(int,input().split()) map(int,input().split()) x
N, D = map(int,input().split())
X, Y = [],[]
for i in range(N):
  x,y = map(int,input().split())
  X.append(x)
  Y.append(y)
assert len(X) == N

print(len([(x,y) for x,y in zip(X,Y) if x ** 2 + y ** 2 <= D ** 2]))