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