<?php
    $cnt = 0;
    $num = explode(" ",trim(fgets(STDIN)));
    $a = $num[0];
    $b = $num[1];
    $c = $num[2];
    while($a < $b){
        if(($c % $a)==0){
            $cnt++;
        }
        $a++;
    }
    echo $cnt.PHP_EOL;
?>
