n, d = gets.chomp.split(' ').map(&:to_i)
ans = 0
# while n > 0
#   x , y = gets.chomp.split(' ').map(&:to_i)
#   if x**2 + x**2 <= d**2
#     ans += 1
#   end
#   n -= 1
# end
points = []
while n > 0
  points.push(gets.chomp.split(' ').map(&:to_i))
  n -= 1
end
points.each do |point|
  if point[0]**2 + point[1]**2 <= d**2
    ans += 1
  end
end
print ans