n, d = map(int, input().split())
ls = [list(map(int, input().split())) for _ in range(n)]

ans = 0

for i in range(n):
    p = ls[i][0]
    q = ls[i][1]
    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 list(map(int, input().split())) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ls = [list(map(int, input().split())) for _ in range(n)] ls [list(map(int, input().split())) for _ in range(n)] ans = 0 ans 0 for i in range(n):
    p = ls[i][0]
    q = ls[i][1]
    if (p ** 2 + q ** 2) ** 0.5 <= d:
        ans += 1 i range(n) range n p = ls[i][0] p ls[i][0] [i] ls i 0 q = ls[i][1] q ls[i][1] [i] ls i 1 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 ans = 0 0 ans q = ls[i][1] ls[i][1] q p = ls[i][0] ls[i][0] p ans += 1 1 ans d = map(int, input().split()) map(int, input().split()) d ls = [list(map(int, input().split())) for _ in range(n)] [list(map(int, input().split())) for _ in range(n)] ls n, d = map(int, input().split()) map(int, input().split()) n
n, d = map(int, input().split())
ls = [list(map(int, input().split())) for _ in range(n)]

ans = 0

for i in range(n):
    p = ls[i][0]
    q = ls[i][1]
    if (p ** 2 + q ** 2) ** 0.5 <= d:
        ans += 1

print(ans)