#  Author: Amey Bhavsar

#  ID: bhavsar

#  IDE: Geany/Ubuntu

#  Platform: AtCoder Beginner Contest 174

from math import sqrt, floor, pi, cos, sin, log, log2







#  n=map(int,input().split())

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

ans = 0

for i in range(n):

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

	if (sqrt(x*x + y*y) <= m):

		ans+=1

print(ans)

	



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

#  mat = []

#  for i in range(n):

	#  r = input()

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

	#  mat.append(r)



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

d *= d

cnt = 0

for i in range(n):

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

	if (x*x + y*y <= d): cnt+=1

print(cnt)

#  Author: Amey Bhavsar
#  ID: bhavsar
#  IDE: Geany/Ubuntu
#  Platform: AtCoder Beginner Contest 174
from math import sqrt, floor, pi, cos, sin, log, log2

#  n=map(int,input().split())
n, m = list(map(int, input().split()))
ans = 0
for i in range(n):
    x, y = list(map(int, input().split()))
    if sqrt(x * x + y * y) <= m:
        ans += 1
print(ans)
#  a=list(map(int,input().split()))
#  mat = []
#  for i in range(n):
#  r = input()
#  r = list(map(int,input().split()))
#  mat.append(r)

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

-#  Author: Amey Bhavsar -#  ID: bhavsar -#  IDE: Geany/Ubuntu -#  Platform: AtCoder Beginner Contest 174 -from math import sqrt, floor, pi, cos, sin, log, log2 - -#  n=map(int,input().split()) -n, m = list(map(int, input().split())) -ans = 0 +n, d = list(map(int, input().split())) +d *= d +cnt = 0 -    if sqrt(x * x + y * y) <= m: -        ans += 1 -print(ans) -#  a=list(map(int,input().split())) -#  mat = [] -#  for i in range(n): -#  r = input() -#  r = list(map(int,input().split())) -#  mat.append(r) +    if x * x + y * y <= d: +        cnt += 1 +print(cnt)