#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int c = 0;
    for (int j = 1; j < n; j++)
      if (n % j == 0) c++;
    cout << c << endl;
  }
  return 0;
}
