object Main {
  def main (args: Array[String]) {
    var count:Int = 0
    for(line <- scala.io.Source.stdin.getLines()){
        val Array(min, max, o) = line.split(" ").map(_.toInt)
        var list: List[Int] = List() 
        for( i <-  min to max if ((o % i)  == 0 ) )  list = i::list
        println(list.length)
    }
  }
}