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