var std = process.stdin;
std.resume();
std.setEncoding('utf8');
std.on('data', function (chunk) {
    var data = chunk.replace(/\n/, '').split(' ').map(Number);
    var count = 0;
    for (var i = data[0]; i < data[1]; i++) {
        if (data[2] % i === 0) {
            count++;
        }
    }
    console.log(count);
});