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