process.stdin.resume();
process.stdin.setEncoding('utf8');
// Here your code !

process.stdin.on("data",function(chunk){
    var line = chunk.trim().split(" ");
    var arr= [];
    for(var i=parseInt(line[0]);i<=parseInt(line[1]);i++){
        if(line[2]%i===0){
             arr.push(i);
        }
    }
    console.log(arr.length);
});