#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int n;
  int div = 0;
  int d;
  cin >> a >> b >> c;
  d = c % a;
  for (n = 0; n <= b - a + 1; n++) {
    if (d == 0) {
      div++;
    }
    d = c % a;
    a++;
  }
  cout << div << "\n";
  return 0;
}
