N, D = gets.split.map(&:to_i)
Xs = Array.new(N)
Ys = Array.new(N)
As = Array.new(N)
D2 = D ** 2
counter = 0
N.times do |i|
  Xs[i], Ys[i] = gets.split.map(&:to_i)
  d2 = Xs[i] ** 2 + Ys[i] ** 2
  counter += 1  if d2 <= D2
end

puts counter
