import Control.Applicative
import Control.Monad
import Data.Char

main :: IO () 
main = do
      [a,b,c] <- map read . words <$> getLine
      print $ countDivisor a b c 
      
countDivisor :: Int -> Int -> Int -> Int
countDivisor a b c = 
    length $ filter(\x -> c `mod` x == 0)  range
      where range = [a..b]
