lines = []
while line = gets
    lines << line.chomp.split(' ').map(&:to_i)
end
#p lines
n = lines[0][0]
d = lines[0][1]
i = 1
cnt = 0
while i < lines.length
	if d >= Math.sqrt(lines[i][0]**2 + lines[i][1]**2) then
		cnt += 1
	end
	i+= 1
end
p cnt
