N,D=map(int, input().split())
A = 0
for i in range(N):
    X,Y=map(int, input().split())
    if (D*D) >= (X*X)+(Y*Y):
        A +=1 
print(A) N,D=map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D A = 0 A 0 for i in range(N):
    X,Y=map(int, input().split())
    if (D*D) >= (X*X)+(Y*Y):
        A +=1  i range(N) range N X,Y=map(int, input().split()) X map(int, input().split()) map int input().split() ().split () input split Y if (D*D) >= (X*X)+(Y*Y):
        A +=1  (D*D) >= (X*X)+(Y*Y) D*D D D (X*X)+(Y*Y) X*X X X Y*Y Y Y A +=1 A 1 print(A) print A Y=map(int, input().split()) map(int, input().split()) Y A = 0 0 A X,Y=map(int, input().split()) map(int, input().split()) X D=map(int, input().split()) map(int, input().split()) D A +=1 1 A N,D=map(int, input().split()) map(int, input().split()) N
N,D=map(int, input().split())
A = 0
for i in range(N):
    X,Y=map(int, input().split())
    if (D*D) >= (X*X)+(Y*Y):
        A +=1 
print(A)