n, d = gets.split.map(&:to_i)
x, y = 0, 0
count  = 0
n.times {
  x, y = gets.split.map(&:to_i)
  if Math.sqrt( (x.abs)*(x.abs) + (y.abs) * (y.abs) ) <= d
#    puts Math.sqrt( (x.abs)*(x.abs) + (y.abs) * (y.abs) )
    count += 1
  end
}


puts count
