import math
n,distance = map(int, input().split())
res = 0
for i in range(n):
	a, b = map(int ,input().split())
	if abs(a) > distance or abs(b)> distance:continue
	elif math.sqrt(a*a+b*b)>distance:continue
	res += 1
print(res) import math math n,distance = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split distance res = 0 res 0 for i in range(n):
	a, b = map(int ,input().split())
	if abs(a) > distance or abs(b)> distance:continue
	elif math.sqrt(a*a+b*b)>distance:continue
	res += 1 i range(n) range n a, b = map(int ,input().split()) a map(int ,input().split()) map int input().split() ().split () input split b if abs(a) > distance or abs(b)> distance:continue
	elif math.sqrt(a*a+b*b)>distance:continue
	 abs(a) > distance or abs(b)> distance abs(a) > distance abs(a) abs a distance abs(b)> distance abs(b) abs b distance elif math.sqrt(a*a+b*b)>distance:continue
	 math.sqrt(a*a+b*b)>distance math.sqrt(a*a+b*b) math.sqrt math sqrt a*a+b*b a*a a a b*b b b distance res += 1 res 1 print(res) print res n,distance = map(int, input().split()) map(int, input().split()) n b = map(int ,input().split()) map(int ,input().split()) b distance = map(int, input().split()) map(int, input().split()) distance res = 0 0 res a, b = map(int ,input().split()) map(int ,input().split()) a res += 1 1 res
import math
n,distance = map(int, input().split())
res = 0
for i in range(n):
	a, b = map(int ,input().split())
	if abs(a) > distance or abs(b)> distance:continue
	elif math.sqrt(a*a+b*b)>distance:continue
	res += 1
print(res)