N, D = gets.chomp.split(' ').map(&:to_i)
cps = []
N.times { cps.push(gets.chomp.split(' ').map(&:to_i)) }

ans = 0
cps.each do |cp|
    dist = Math.sqrt(cp[0] ** 2 + cp[1] ** 2)
    ans += 1 if dist <= D
end

puts ans