import scala.io.StdIn.readLine

object Main extends App {

  val input = readLine().split(" ").map(_.toInt)
  val (a, b, c) = (input(0), input(1), input(2))
  var res = 0

  for(e <- a to b) {
    if (c % e == 0) res += 1 else res
  }

  println(res)
}

