lines = []
while line = gets
    lines << line.chomp.split(' ').map(&:to_i)
end

i = 1
c = 0
lines[0][0].times {
  po = lines[i][0] ** 2 + lines[i][1] ** 2
  h = Math.sqrt(po)
  if h <= lines[0][1]
  	c += 1
  end
  i += 1
}
puts c
