#include <bits/stdc++.h>
using namespace std;
int main() {
  float n, ctr = 1;
  cin >> n;
  for (float i = 1; i < n; i += 1) {
    float num = (n - i) / i;
    int n = int(num);
    if (num - n == 0) {
      ctr++;
    }
  }
  cout << ctr - 1;
  return 0;
}
