n , d = map(int, input().split())
ans = 0

for _ in range(n):
        p, q = map(int, input().split())
        if (p ** 2 + q ** 2) ** 0.5  <= d:
                ans += 1
                
print(ans) n , d = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split d ans = 0 ans 0 for _ in range(n):
        p, q = map(int, input().split())
        if (p ** 2 + q ** 2) ** 0.5  <= d:
                ans += 1
                 _ range(n) range n p, q = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q if (p ** 2 + q ** 2) ** 0.5  <= d:
                ans += 1
                 (p ** 2 + q ** 2) ** 0.5  <= d (p ** 2 + q ** 2) ** 0.5 p ** 2 + q ** 2 p ** 2 p 2 q ** 2 q 2 0.5 d ans += 1 ans 1 print(ans) print ans d = map(int, input().split()) map(int, input().split()) d n , d = map(int, input().split()) map(int, input().split()) n ans += 1 1 ans ans = 0 0 ans q = map(int, input().split()) map(int, input().split()) q p, q = map(int, input().split()) map(int, input().split()) p
n , d = map(int, input().split())
ans = 0

for _ in range(n):
        p, q = map(int, input().split())
        if (p ** 2 + q ** 2) ** 0.5  <= d:
                ans += 1
                
print(ans)