#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  int count = 0;
  int list[5000];
  int cyaku[5000];
  cin >> a >> b >> c;
  for (int i = a; i < b + 1; i++) {
    list[i] = i;
  }
  for (int j = 0; j <= c; ++j) {
    if (c % j == 0) {
      cyaku[j] = j;
    }
  }
  for (int k = 0; k < 5000; ++k) {
    if (list[k] == cyaku[k]) {
      count = count + 1;
    }
  }
  cout << count;
}
