n,d = gets.chomp.split(" ").map(&:to_i);
lines = []
while line = gets
    lines << line.chomp.split(' ').map(&:to_f)
end

answer = 0
for i in 0..(lines.length - 1) do
	if (lines[i][0] * lines[i][0] + lines[i][1] * lines[i][1])** 0.5 <= d then
		answer += 1
	end
end
puts answer
