class Divisors
	def divisors_count(input)
		divisors = Array.new
		for i in 1..input[2]
			divisors << i if input[2]%i == 0
		end
		divisor_range = (input[0]..input[1]).to_a
		puts (divisors & divisor_range).length
	end
end

input = gets.split.map(&:to_i)

Divisors.new.divisors_count(input)