#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n, cont = 0;
  cin >> n;
  for (int i = 1; i <= n - 1; i++) {
    int tmp = n - i;
    if (tmp % i == 0) cont++;
  }
  cout << cont << endl;
  return 0;
}
