import Control.Applicative
import Control.Monad
import Data.List
import Text.Printf

readInts :: IO [Int]
readInts = map read . words <$> getLine

main :: IO ()
main = do
  [a, b, c] <- readInts
  print $ solve a b c

solve :: Int -> Int -> Int -> Int
solve a b c = length [ d | d <- divisors c, a <= d, d <= b ]

divisors :: Int -> [Int]
divisors n = [ d | d <- [1..n], n `rem` d == 0 ]

