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

void main() {
   auto a = readln.split.map!(to!int);
   int count = 0;
   foreach (i; a[0]..a[1]+1) if (a[2] % i == 0) count++;
   writeln(count);
}