i = 0
line = gets
a,b,c = line.split(/\s/).map(&:to_i)
# puts a.integer?
# puts b.integer?
# puts c.integer?
(a..b).each do |num|
  # puts c
  # puts num
  if c % num == 0
    i = i + 1
  end
  # puts "each??????i?????????#{i}??§???"
end 
# puts "each??????i?????????#{i}??§???"
puts i