n,d=map(int,input().split())
ans=0
for _ in range(n):
  x,y=map(int,input().split())
  dist=x**2+y**2
  dist=dist**(1/2)
  if dist<=d:
    ans+=1
print(ans) n,d=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d ans=0 ans 0 for _ in range(n):
  x,y=map(int,input().split())
  dist=x**2+y**2
  dist=dist**(1/2)
  if dist<=d:
    ans+=1 _ range(n) range n x,y=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y dist=x**2+y**2 dist x**2+y**2 x**2 x 2 y**2 y 2 dist=dist**(1/2) dist dist**(1/2) dist 1/2 1 2 if dist<=d:
    ans+=1 dist<=d dist d ans+=1 ans 1 print(ans) print ans ans=0 0 ans dist=x**2+y**2 x**2+y**2 dist ans+=1 1 ans y=map(int,input().split()) map(int,input().split()) y n,d=map(int,input().split()) map(int,input().split()) n d=map(int,input().split()) map(int,input().split()) d x,y=map(int,input().split()) map(int,input().split()) x dist=dist**(1/2) dist**(1/2) dist
n,d=map(int,input().split())
ans=0
for _ in range(n):
  x,y=map(int,input().split())
  dist=x**2+y**2
  dist=dist**(1/2)
  if dist<=d:
    ans+=1
print(ans)