#include <bits/stdc++.h>
int main(int argc, const char* argv[]) {
  int a, b, c, count = 0;
  int box[10000];
  int i, n = 0;
  scanf("%d %d %d", &a, &b, &c);
  for (i = 1; i <= c; i++) {
    if (c % i == 0) {
      box[n] = i;
      n = n + 1;
    }
  }
  for (i = a, n = 0; i <= b; i++) {
    if (i == box[n]) {
      count = count + 1;
    }
  }
  printf("%d\n", count);
  return 0;
}
