#include <bits/stdc++.h>
using namespace std;
int n;
long long a, counter;
int main() {
  cin >> n;
  for (int i = 1; i < n; i++) {
    if ((n - i) % i == 0) {
      counter++;
    }
  }
  cout << counter;
}
