import Control.Applicative

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

main :: IO ()
main = do
    [a,b,c] <- map read . words <$> getLine
    putStrLn . show $ divCount a b c
