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