def divisors(c)
  div = []
  (1..c).each do |i|
    if c % i == 0
      div << i
    end
  end
  div
end

a, b, c  = gets.split.map(&:to_i)
array_of_divisors = divisors(c)
number_of_divisors = 0

array_of_divisors.each do |i|
  if i.between?(a, b)
    number_of_divisors += 1
  end
end

puts number_of_divisors