N, D = list(map(int, input().split()))

count = 0

for i in range(N):

    a, b = list(map(int, input().split()))

    if (a*a + b*b) <= D*D:

        count += 1

print(count)

import sys

input = sys.stdin.readline

N, D = list(map(int, input().split()))

count = 0

for i in range(N):

    a, b = list(map(int, input().split()))

    if (a*a + b*b) <= D*D:

        count += 1

print(count)

N, D = list(map(int, input().split()))
count = 0
for i in range(N):
    a, b = list(map(int, input().split()))
    if (a * a + b * b) <= D * D:
        count += 1
print(count)

import sys

input = sys.stdin.readline
N, D = list(map(int, input().split()))
count = 0
for i in range(N):
    a, b = list(map(int, input().split()))
    if (a * a + b * b) <= D * D:
        count += 1
print(count)

+import sys + +input = sys.stdin.readline