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