require 'pp'

n, d = gets.split.map(&:to_i)
a_n = Array.new(n)
n.times do |i|
    x, y = gets.split.map(&:to_i)
    a_n[i] = [x, y]
end

count = 0
a_n.each do |a|
    t = Math.sqrt(a[0] ** 2 + a[1] ** 2)
    if t <= d
        count += 1
    end
end

puts count
