n,d=list(map(int,input().split()))
count=0
for _ in range(n):
    x,y=list(map(int,input().split()))
    D=pow(pow(x,2)+pow(y,2),0.5)
    if D<=d:
        count+=1
print(count) n,d=list(map(int,input().split())) n list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split d count=0 count 0 for _ in range(n):
    x,y=list(map(int,input().split()))
    D=pow(pow(x,2)+pow(y,2),0.5)
    if D<=d:
        count+=1 _ range(n) range n x,y=list(map(int,input().split())) x list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split y D=pow(pow(x,2)+pow(y,2),0.5) D pow(pow(x,2)+pow(y,2),0.5) pow pow(x,2)+pow(y,2) pow(x,2) pow x 2 pow(y,2) pow y 2 0.5 if D<=d:
        count+=1 D<=d D d count+=1 count 1 print(count) print count count=0 0 count y=list(map(int,input().split())) list(map(int,input().split())) y x,y=list(map(int,input().split())) list(map(int,input().split())) x count+=1 1 count D=pow(pow(x,2)+pow(y,2),0.5) pow(pow(x,2)+pow(y,2),0.5) D n,d=list(map(int,input().split())) list(map(int,input().split())) n d=list(map(int,input().split())) list(map(int,input().split())) d
n,d=list(map(int,input().split()))
count=0
for _ in range(n):
    x,y=list(map(int,input().split()))
    D=pow(pow(x,2)+pow(y,2),0.5)
    if D<=d:
        count+=1
print(count)