let range a b =
  let rec range' n acc =
    if a > n then
      acc
    else
      range' (n-1) (n::acc) in
   range' b []

let () =
  let line = read_line () in
  let a :: b :: c :: _ = line |>
                         Str.split (Str.regexp " ") |>
                         List.map int_of_string in
  let result = range a b |>
               List.filter (fun i -> c mod i = 0) |>
               List.length in
  print_endline (string_of_int result)