import Control.Applicative

main = solve

solve = do
    n <- fmap (read :: String -> Int) . words <$> getLine
    let a = n !! 0
        b = n !! 1
        c = n !! 2
    putStrLn $ show (calc a b c)

calc :: Int -> Int -> Int -> Int
calc a b c = length . filter (\x -> c `mod` x == 0) $ [a..b]