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