#k = int(input())

#s = input()

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

#s, t = map(str, input().split())

#l = list(map(int, input().split()))

#l = [list(map(int,input().split())) for i in range(n)]

import math

n,d = list(map(int, input().split()))



ans = 0



for i in range(n):

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

    kyori = math.sqrt(x*x+y*y)

    if kyori <= d:

        ans+=1

print(ans)



#k = int(input())

#s = input()

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

#s, t = map(str, input().split())

#l = list(map(int, input().split()))

#l = [list(map(int,input().split())) for i in range(n)]





n, d = list(map(int, input().split()))

ans = 0

for i in range(n):

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

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

        ans+=1

print(ans)





# k = int(input())
# s = input()
# a, b = map(int, input().split())
# s, t = map(str, input().split())
# l = list(map(int, input().split()))
# l = [list(map(int,input().split())) for i in range(n)]
import math

n, d = list(map(int, input().split()))
ans = 0
for i in range(n):
    x, y = list(map(int, input().split()))
    kyori = math.sqrt(x * x + y * y)
    if kyori <= d:
        ans += 1
print(ans)

# k = int(input())
# s = input()
# a, b = map(int, input().split())
# s, t = map(str, input().split())
# l = list(map(int, input().split()))
# l = [list(map(int,input().split())) for i in range(n)]
n, d = list(map(int, input().split()))
ans = 0
for i in range(n):
    x, y = list(map(int, input().split()))
    if x * x + y * y <= d * d:
        ans += 1
print(ans)

-import math - -    kyori = math.sqrt(x * x + y * y) -    if kyori <= d: +    if x * x + y * y <= d * d: