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

exception InvalidInput

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