#B
n,d=map(int,input().split())
xy=[list(map(int,input().split()))for _ in range(n)]
count=0
for i in xy:
    if pow(i[0],2)+pow(i[1],2)<=pow(d,2):
        count+=1
print(count) 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 _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split xy=[list(map(int,input().split()))for _ in range(n)] xy [list(map(int,input().split()))for _ in range(n)] count=0 count 0 for i in xy:
    if pow(i[0],2)+pow(i[1],2)<=pow(d,2):
        count+=1 i xy if pow(i[0],2)+pow(i[1],2)<=pow(d,2):
        count+=1 pow(i[0],2)+pow(i[1],2)<=pow(d,2) pow(i[0],2)+pow(i[1],2) pow(i[0],2) pow i[0] i 0 2 pow(i[1],2) pow i[1] i 1 2 pow(d,2) pow d 2 count+=1 count 1 print(count) print count d=map(int,input().split()) map(int,input().split()) d n,d=map(int,input().split()) map(int,input().split()) n xy=[list(map(int,input().split()))for _ in range(n)] [list(map(int,input().split()))for _ in range(n)] xy count=0 0 count count+=1 1 count
#B
n,d=map(int,input().split())
xy=[list(map(int,input().split()))for _ in range(n)]
count=0
for i in xy:
    if pow(i[0],2)+pow(i[1],2)<=pow(d,2):
        count+=1
print(count)
