import scala.io.StdIn

/**
  * AOJ
  */
object Main {

  def main(args: Array[String]): Unit = {
      val in = StdIn.readLine().split(" ").map(s => s.toInt)
      println((in(0) to in(1)).filter(p => in(2) % p == 0).length)
 }
}