n,d  = gets.chomp.split(" ").map(&:to_i)
array = []

n.times do |i|
  array << gets.chomp.split(" ").map(&:to_i)
end

count = 0
array.each do |a|
  sum = (a[0] ** 2) + (a[1] ** 2)
  if Math.sqrt(sum) <= d
    count += 1
  end
end


puts count
