require 'set'; require 'prime'; require 'pp'
INF=Float::INFINITY; MOD=10**9+7
n,d = gets.chomp.split.map(&:to_i)
ans = 0
n.times do
  x,y = gets.chomp.split.map(&:to_i)
  if x*x + y*y <= d*d
    ans += 1
  end
end

puts ans