N, D = gets.chomp.split.map(&:to_i)
X, Y = [], []
N.times{
  x, y = gets.chomp.split.map(&:to_i)
  X.push x
  Y.push y
}

puts X.zip(Y).map{ |x, y| Math.sqrt(x **2 + y ** 2) }.select{ |d| d <= D }.size
