N,D = map(int,input().split())
A=[[int(i) for i in input().split()] for _ in range(N)]
ans=int()

for i in range(N):
  if A[i][0]*A[i][0]+A[i][1]*A[i][1]<=D*D:
    ans+=1
print(ans)
   N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D [int(i) for i in input().split()] for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) [int(i) for i in input().split()] A=[[int(i) for i in input().split()] for _ in range(N)] A [[int(i) for i in input().split()] for _ in range(N)] ans=int() ans int() int for i in range(N):
  if A[i][0]*A[i][0]+A[i][1]*A[i][1]<=D*D:
    ans+=1 i range(N) range N if A[i][0]*A[i][0]+A[i][1]*A[i][1]<=D*D:
    ans+=1 A[i][0]*A[i][0]+A[i][1]*A[i][1]<=D*D A[i][0]*A[i][0]+A[i][1]*A[i][1] A[i][0]*A[i][0] A[i][0] [i] A i 0 A[i][0] [i] A i 0 A[i][1]*A[i][1] A[i][1] [i] A i 1 A[i][1] [i] A i 1 D*D D D ans+=1 ans 1 print(ans) print ans ans+=1 1 ans ans=int() int() ans N,D = map(int,input().split()) map(int,input().split()) N A=[[int(i) for i in input().split()] for _ in range(N)] [[int(i) for i in input().split()] for _ in range(N)] A D = map(int,input().split()) map(int,input().split()) D
N,D = map(int,input().split())
A=[[int(i) for i in input().split()] for _ in range(N)]
ans=int()

for i in range(N):
  if A[i][0]*A[i][0]+A[i][1]*A[i][1]<=D*D:
    ans+=1
print(ans)
  
