#include <bits/stdc++.h>
int main() {
  int a, b, c;
  int count = 0;
  std::cin >> a >> b >> c;
  if (b > a) return 0;
  if (!(1 <= a && a <= 10000)) return 0;
  if (!(1 <= b && b <= 10000)) return 0;
  if (!(1 <= c && c <= 10000)) return 0;
  while (a < b) {
    if ((c % a) == 0) ++count;
    ++a;
  }
  std::cout << count << std::endl;
  return 0;
}
