#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, S;
  cin >> a >> b >> c;
  for (; a < b; a++) {
    if (a == 1) continue;
    if (c % a == 0)
      ;
    S++;
  }
  cout << S << endl;
}
