import std.stdio, std.string, std.array, std.conv;

void main() {
    int[] tmp = readln.chomp.split.to!(int[]);
    int a = tmp[0], b = tmp[1], c = tmp[2];
    int cnt = 0;
    foreach (i; a .. b+1) {
        if (c % i == 0) ++cnt;
    }
    cnt.writeln;
}
