-- 1_3_D
main = do cs <- getLine
          let [a, b, c] = map (\x -> read x :: Int) $ words cs
          print $ length $ filter (is_divisor c) [a..b]

is_divisor :: Int -> Int -> Bool
is_divisor a b = if a `mod` b == 0
                    then True
                    else False