lines = readlines(chomp: true).map{|line| line.split(' ')}
n = lines[0][0].to_i
d = lines[0][1].to_i

count = 0
(1).upto(n) do |i|
	point = lines[i]
	s = Math.sqrt(point[0].to_i**2 + point[1].to_i**2)
	if (s <= d) then
		count = count + 1
	end
end

print count
return