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