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