N ,D = map(int , input().split())
sum = 0
for i in range(N):
    a,b = map(int , input().split())
    if(((a ** 2 + b ** 2)**(1/2)) <= D):
        sum += 1
print(sum) N ,D = map(int , input().split()) N map(int , input().split()) map int input().split() ().split () input split D sum = 0 sum 0 for i in range(N):
    a,b = map(int , input().split())
    if(((a ** 2 + b ** 2)**(1/2)) <= D):
        sum += 1 i range(N) range N a,b = map(int , input().split()) a map(int , input().split()) map int input().split() ().split () input split b if(((a ** 2 + b ** 2)**(1/2)) <= D):
        sum += 1 ((a ** 2 + b ** 2)**(1/2)) <= D (a ** 2 + b ** 2)**(1/2) a ** 2 + b ** 2 a ** 2 a 2 b ** 2 b 2 1/2 1 2 D sum += 1 sum 1 print(sum) print sum a,b = map(int , input().split()) map(int , input().split()) a N ,D = map(int , input().split()) map(int , input().split()) N b = map(int , input().split()) map(int , input().split()) b sum += 1 1 sum D = map(int , input().split()) map(int , input().split()) D sum = 0 0 sum
N ,D = map(int , input().split())
sum = 0
for i in range(N):
    a,b = map(int , input().split())
    if(((a ** 2 + b ** 2)**(1/2)) <= D):
        sum += 1
print(sum)