#include <bits/stdc++.h>
int main() {
  int a, b, c, s, t;
  do {
    printf("");
    scanf("%d %d %d", &a, &b, &c);
  } while (!(a >= 1 && a <= 10000 && b >= 1 && b <= 10000 && c >= 1 &&
             c <= 10000 && a <= b));
  for (s = a; s <= b; s++) {
    if (c % s == 0) t++;
  }
  printf("%d", t);
  return 0;
}
