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