let () =
  let a, b, c = Scanf.scanf "%d %d %d\n" (fun a b c -> a, b, c) in
  let ans = ref 0 in
  for d = a to b do
    if c mod d = 0 then ans := !ans + 1 else ()
  done;
  Printf.printf "%d\n" !ans