#include <bits/stdc++.h>
int main(void) {
  int i, a, b, c;
  int count = 0;
  scanf("%d %d %d", &a, &b, &c);
  if (a - b > 0) {
    for (i = b; i <= a; i++) {
      if (c % i == 0) {
        count++;
      }
    }
    printf("%d\n", count);
  } else if (b - a > 0) {
    for (i = a; i <= b; i++) {
      if (c % i == 0) {
        count++;
      }
    }
    printf("%d\n", count);
  }
  return 0;
}
