# https://atcoder.jp/contests/abc174/tasks/abc174_b

N, D = gets.split.map(&:to_i)
Xs = Array.new(N)
Ys = Array.new(N)
N.times do |i|
  Xs[i], Ys[i] = gets.split.map(&:to_i)
end

ans = N.times.count do |i|
  Xs[i]**2 + Ys[i]**2 <= D**2
end

puts ans
