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