object Main extends App {
  val scanner = new java.util.Scanner(System.in)
  val a = scanner.nextInt
  val b = scanner.nextInt
  val c = scanner.nextInt

  val count = (a to b).filter(c % _ == 0).size

  println(count)
}