N, D = map(int, input().split())
x = [0] * N
y = [0] * N
for i in range(N):
    x[i], y[i] = map(int, input().split())


c = 0
for j in range(N):
    if x[j]**2 + y[j]**2 <= D**2:
        c += 1

print(c) N, D = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split D x = [0] * N x [0] * N [0] 0 N y = [0] * N y [0] * N [0] 0 N for i in range(N):
    x[i], y[i] = map(int, input().split()) i range(N) range N x[i], y[i] = map(int, input().split()) x[i] x i map(int, input().split()) map int input().split() ().split () input split y[i] y i c = 0 c 0 for j in range(N):
    if x[j]**2 + y[j]**2 <= D**2:
        c += 1 j range(N) range N if x[j]**2 + y[j]**2 <= D**2:
        c += 1 x[j]**2 + y[j]**2 <= D**2 x[j]**2 + y[j]**2 x[j]**2 x[j] x j 2 y[j]**2 y[j] y j 2 D**2 D 2 c += 1 c 1 print(c) print c c = 0 0 c D = map(int, input().split()) map(int, input().split()) D c += 1 1 c x = [0] * N [0] * N x N, D = map(int, input().split()) map(int, input().split()) N y = [0] * N [0] * N y
N, D = map(int, input().split())
x = [0] * N
y = [0] * N
for i in range(N):
    x[i], y[i] = map(int, input().split())


c = 0
for j in range(N):
    if x[j]**2 + y[j]**2 <= D**2:
        c += 1

print(c)