#include <bits/stdc++.h>
using namespace std;

int main() {
  int a, b, c;
  int N = 0;
  cin >> a >> b >> c;
  for (int i = a; a < b; i++) {
    if (c / i * c = c) {
       N++;
    }
  }
  cout << N << endl;
}
