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

count=0
dist=0
n.times do |i|
    dist=(x[i]**2+y[i]**2)**0.5
    if dist<=d
        count+=1
    end
end
puts count
