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

a=0

d=D**2

for i in range(N):

    x,y=list(map(int,input().split()))

    if x**2+y**2<=d:

        a+=1

print(a)

import sys

def input():

    return sys.stdin.readline()[:-1]

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

a=0

d=D**2

for i in range(N):

    x,y=list(map(int,input().split()))

    if x**2+y**2<=d:

        a+=1

print(a)

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

import sys


def input():
    return sys.stdin.readline()[:-1]


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

+import sys + + +def input(): +    return sys.stdin.readline()[:-1] + +