n,d=map(int,input().split())
l=[list(map(int,input().split())) for i in range(n)]
ans=0
for i in range(n):
  if l[i][0]**2+l[i][1]**2<=d**2:
    ans+=1
print(ans) n,d=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split d list(map(int,input().split())) for i in range(n) for i in range(n) i range(n) range n for i in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split l=[list(map(int,input().split())) for i in range(n)] l [list(map(int,input().split())) for i in range(n)] ans=0 ans 0 for i in range(n):
  if l[i][0]**2+l[i][1]**2<=d**2:
    ans+=1 i range(n) range n if l[i][0]**2+l[i][1]**2<=d**2:
    ans+=1 l[i][0]**2+l[i][1]**2<=d**2 l[i][0]**2+l[i][1]**2 l[i][0]**2 l[i][0] [i] l i 0 2 l[i][1]**2 l[i][1] [i] l i 1 2 d**2 d 2 ans+=1 ans 1 print(ans) print ans d=map(int,input().split()) map(int,input().split()) d ans=0 0 ans l=[list(map(int,input().split())) for i in range(n)] [list(map(int,input().split())) for i in range(n)] l n,d=map(int,input().split()) map(int,input().split()) n ans+=1 1 ans
n,d=map(int,input().split())
l=[list(map(int,input().split())) for i in range(n)]
ans=0
for i in range(n):
  if l[i][0]**2+l[i][1]**2<=d**2:
    ans+=1
print(ans)