#include <bits/stdc++.h>
using namespace std;
const int oo = 1e9;
const int MOD = 1000000007;
const int N = 100010;
int n;
int main() {
  cin >> n;
  int cnt = 0;
  for (int i = 1; i < n; ++i) {
    if ((n - i) % i == 0) {
      cnt++;
    }
  }
  cout << cnt << endl;
  return 0;
}
