N, D = [int(v) for v in input().split()]
D = D*D
ans = 0
for _ in range(N):
    x, y = [int(v) for v in input().split()]
    if (x**2 + y**2) <= D:
        ans += 1

print(ans) int(v) for v in input().split() for v in input().split() v input().split() ().split () input split for v in input().split() int(v) int v N, D = [int(v) for v in input().split()] N [int(v) for v in input().split()] D D = D*D D D*D D D ans = 0 ans 0 for _ in range(N):
    x, y = [int(v) for v in input().split()]
    if (x**2 + y**2) <= D:
        ans += 1 _ range(N) range N int(v) for v in input().split() for v in input().split() v input().split() ().split () input split for v in input().split() int(v) int v x, y = [int(v) for v in input().split()] x [int(v) for v in input().split()] y if (x**2 + y**2) <= D:
        ans += 1 (x**2 + y**2) <= D x**2 + y**2 x**2 x 2 y**2 y 2 D ans += 1 ans 1 print(ans) print ans N, D = [int(v) for v in input().split()] [int(v) for v in input().split()] N x, y = [int(v) for v in input().split()] [int(v) for v in input().split()] x y = [int(v) for v in input().split()] [int(v) for v in input().split()] y D = [int(v) for v in input().split()] [int(v) for v in input().split()] D ans += 1 1 ans D = D*D D*D D ans = 0 0 ans
N, D = [int(v) for v in input().split()]
D = D*D
ans = 0
for _ in range(N):
    x, y = [int(v) for v in input().split()]
    if (x**2 + y**2) <= D:
        ans += 1

print(ans)