n,d = gets.chomp.split.map(&:to_i)
distance = n.times.map{gets.split.map(&:to_i)}

kotae = 0
(0..n-1).each do |i|
  if ((distance[i][0]**2 + distance[i][1]**2)**(1/2.0)) <= d
    kotae += 1
  end
end

puts kotae