fun main(args: Array<String>){
	How_Many_Divisors()
}

fun How_Many_Divisors(){
	val d = readLine()!!.split(" ").map(String::toInt)
	val a = d[0]; val b = d[1]; val c = d[2]
	val divisors: MutableList<Int> = mutableListOf()
	var divisor_num = 0
	for(i in 1..c){
		if(c%i==0){
			divisors.add(i)
		}
	}
	for(i in a..b){
		for(j in divisors){
			if(i==j){
				divisor_num++
			}
		}
	}
	println(divisor_num)
}
