import math



N,D =[int(x) for x in input().split()]



X = []

Y = []



for i in range(N):

    x,y = [int(x) for x in input().split()]

    X.append(x)

    Y.append(y)



ans = 0



for i in range(N):

    r = math.sqrt(X[i] ** 2 + Y[i] ** 2)

    if r <= D:

        ans += 1



print(ans)
N,D =[int(x) for x in input().split()]



ans = 0



for i in range(N):

    x,y = [int(x) for x in input().split()]

    if x * x + y * y <= D * D:

        ans += 1



print(ans)
import math

N, D = [int(x) for x in input().split()]
X = []
Y = []
for i in range(N):
    x, y = [int(x) for x in input().split()]
    X.append(x)
    Y.append(y)
ans = 0
for i in range(N):
    r = math.sqrt(X[i] ** 2 + Y[i] ** 2)
    if r <= D:
        ans += 1
print(ans)

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

-import math - -X = [] -Y = [] +ans = 0 -    X.append(x) -    Y.append(y) -ans = 0 -for i in range(N): -    r = math.sqrt(X[i] ** 2 + Y[i] ** 2) -    if r <= D: +    if x * x + y * y <= D * D: