<?php

$stdin = trim(fgets(STDIN));
$number = explode(" ", $stdin);

$a = intval($number[0]);
$b = intval($number[1]);
$c = intval($number[2]);

if ($a == $b == $c) {
    echo "0";
    exit;
}

$count = 0;
for ($i=$a; $i <$b ; $i++) { 
    if ($c % $i == 0) $count++;
}

echo "$count\n";