N,D = map(int,input().split())
count = 0
for i in range(N):
  X,Y = map(int,input().split())
  if X*X + Y*Y<=D*D:
    count += 1
print(count) N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D count = 0 count 0 for i in range(N):
  X,Y = map(int,input().split())
  if X*X + Y*Y<=D*D:
    count += 1 i range(N) range N X,Y = map(int,input().split()) X map(int,input().split()) map int input().split() ().split () input split Y if X*X + Y*Y<=D*D:
    count += 1 X*X + Y*Y<=D*D X*X + Y*Y X*X X X Y*Y Y Y D*D D D count += 1 count 1 print(count) print count count += 1 1 count N,D = map(int,input().split()) map(int,input().split()) N Y = map(int,input().split()) map(int,input().split()) Y X,Y = map(int,input().split()) map(int,input().split()) X D = map(int,input().split()) map(int,input().split()) D count = 0 0 count
N,D = map(int,input().split())
count = 0
for i in range(N):
  X,Y = map(int,input().split())
  if X*X + Y*Y<=D*D:
    count += 1
print(count)
