#include <bits/stdc++.h>
using namespace std;
using ll = long long;
constexpr int SIZE = 1e6;
constexpr int inf = 2e9;
int main() {
  int n;
  cin >> n;
  int ans = 0;
  for (int i = 1; i < n; i++) {
    if ((n - i) % i == 0) ans++;
  }
  cout << ans << "\n";
}
