N,D = map(int, input().split())
ans = 0

for i 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 i in range(N):
    p,q = map(int, input().split())
    if (p**2+q**2)**0.5 <= D:
        ans += 1 i 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 p,q = map(int, input().split()) map(int, input().split()) p q = map(int, input().split()) map(int, input().split()) q N,D = map(int, input().split()) map(int, input().split()) N D = map(int, input().split()) map(int, input().split()) D ans = 0 0 ans ans += 1 1 ans
N,D = map(int, input().split())
ans = 0

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