n,d = gets.split(" ").map(&:to_i)
pos =[]
i = 0
while i < n do
  pos[i] = gets.split(" ").map(&:to_i)
  i += 1
end
i = 0
sum = 0
while i < n do
  if (pos[i][0]**2 + pos[i][1]**2) ** 0.5 <= d
    sum += 1
  end
  i += 1
end
puts sum