N,D = map(int,input().split())

count = 0

for i in range(N):
  x,y = map(int,input().split())
  
  if x**2+y**2 <= D**2:
    count = count + 1
  else:
    count = count + 0

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**2+y**2 <= D**2:
    count = count + 1
  else:
    count = count + 0 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**2+y**2 <= D**2:
    count = count + 1
  else:
    count = count + 0 x**2+y**2 <= D**2 x**2+y**2 x**2 x 2 y**2 y 2 D**2 D 2 count = count + 1 count count + 1 count 1 count = count + 0 count count + 0 count 0 print(count) print count count = count + 1 count + 1 count count = count + 0 count + 0 count D = map(int,input().split()) map(int,input().split()) D count = 0 0 count N,D = map(int,input().split()) map(int,input().split()) N x,y = map(int,input().split()) map(int,input().split()) x y = map(int,input().split()) map(int,input().split()) y
N,D = map(int,input().split())

count = 0

for i in range(N):
  x,y = map(int,input().split())
  
  if x**2+y**2 <= D**2:
    count = count + 1
  else:
    count = count + 0

print(count)