#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int x[c];
  int d = 0;
  int y[c];
  for (int i = 1; i <= c; i++) {
    if (c % i == 0) {
      y[d] = i;
      d++;
    }
  }
  int total = 0;
  for (int i = 0; i <= d; i++) {
    if (a <= y[i] && y[i] <= b) total++;
  }
  cout << total << endl;
  return 0;
}
