import           Data.Functor

main :: IO ()
main = solve =<< fmap read . words <$> getLine

solve :: [Integer] -> IO ()
solve [a,b,c] = print $ length divisors
  where
    divisors = filter (\ n -> c `mod` n == 0) [a..b]

