include Math
def distance(x, y)
  return sqrt(x**2 + y**2)
end

n, d = gets.split(" ").map(&:to_i)
x=[]; y = []
n.times do |i|
  x[i], y[i] = gets.split(" ").map(&:to_i)
end
cnt = 0
0.upto(n-1) do |i|
  if distance(x[i], y[i]) <= d
    cnt += 1
  end
end
puts cnt