solve4 :: Int -> Int -> Int -> Int
solve4 a b c = divisorNumber
  where
    divisorNumber = length [x | x <- [a..b], c `mod` x == 0]

main = do
  list <- getLine
  let [a,b,c] = map read . words $ list
  print $ solve4 a b c

