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