solve :: [Int] -> Int
solve [a,b,c] = length [x | x <- [1..c] , a <= x && x <= b && c `mod` x == 0]

main :: IO ()
main  = getLine
    >>= return . map read . words
    >>= return . solve
    >>= print