N,D = map(int,input().split())
l =[list(map(int,input().split())) for i in range(N)] 
c = 0
for i in range(N):
    if (l[i][0]**2+l[i][1]**2)**0.5<=D:
        c+=1
    else:
        pass
print(c) 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)] c = 0 c 0 for i in range(N):
    if (l[i][0]**2+l[i][1]**2)**0.5<=D:
        c+=1
    else:
        pass i range(N) range N if (l[i][0]**2+l[i][1]**2)**0.5<=D:
        c+=1
    else:
        pass (l[i][0]**2+l[i][1]**2)**0.5<=D (l[i][0]**2+l[i][1]**2)**0.5 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 0.5 D c+=1 c 1 print(c) print c D = map(int,input().split()) map(int,input().split()) D N,D = map(int,input().split()) map(int,input().split()) N c+=1 1 c l =[list(map(int,input().split())) for i in range(N)] [list(map(int,input().split())) for i in range(N)] l c = 0 0 c
N,D = map(int,input().split())
l =[list(map(int,input().split())) for i in range(N)] 
c = 0
for i in range(N):
    if (l[i][0]**2+l[i][1]**2)**0.5<=D:
        c+=1
    else:
        pass
print(c)