n, d = gets.split(" ").map(&:to_i)
lines = []
while line = gets
  lines << line.chomp.split(' ').map(&:to_i)
end
count = 0
lines.each do |point|
  if d >= Math.sqrt(point[0] ** 2 + point[1] ** 2)
    count += 1
  end
end
puts count