object Main {
    def main(args : Array[String]) : Unit = {
        val input = io.StdIn.readLine().split(" ").map(_.toInt)
        var count = 0
        for (i <- input(0) to input(1)) {
            if ((input(2) % i) == 0)
                count += 1
        }
        println(count)
    }
}