count_divisor :: Int->Int->Int->Int->Int

count_divisor a b c num_divisor =
  if a > b then
    num_divisor 
  else
    if (c `mod` a) == 0 then
      count_divisor (a + 1) b c (num_divisor + 1)
    else
      count_divisor (a + 1) b c num_divisor

toInt x = read x :: Int

main = do
  s <- getLine
  let [a, b, c] = map toInt . words $ s

  let num_divisor = count_divisor a b c 0

  putStr (show num_divisor)