#include <bits/stdc++.h>
int main() {
  int n;
  int count = 0;
  std::cin >> n;
  for (int i = 2; i <= n / 2; ++i) {
    if (n % i == 0) {
      ++count;
    }
  }
  std::cout << count + 1 << std::endl;
  return 0;
}
