N,D = map(int,input().split())
count = 0
for i in range(N):
    x,y = map(int,input().split())
    d = (x**2+y**2)**(1/2)
    if d <= D:
        count += 1
print(count) N,D = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split D count = 0 count 0 for i in range(N):
    x,y = map(int,input().split())
    d = (x**2+y**2)**(1/2)
    if d <= D:
        count += 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 d = (x**2+y**2)**(1/2) d (x**2+y**2)**(1/2) x**2+y**2 x**2 x 2 y**2 y 2 1/2 1 2 if d <= D:
        count += 1 d <= D d D count += 1 count 1 print(count) print count D = map(int,input().split()) map(int,input().split()) D count = 0 0 count N,D = map(int,input().split()) map(int,input().split()) N count += 1 1 count y = map(int,input().split()) map(int,input().split()) y d = (x**2+y**2)**(1/2) (x**2+y**2)**(1/2) d x,y = map(int,input().split()) map(int,input().split()) x
N,D = map(int,input().split())
count = 0
for i in range(N):
    x,y = map(int,input().split())
    d = (x**2+y**2)**(1/2)
    if d <= D:
        count += 1
print(count)