#include <iostream>
using namespace std;

int main(void)
{
    int n, cnt;
    while (cin >> n) {
        cnt = 0;
        for (int i = 1; i <= n; ++i)
            if (n%i == 0)
                ++cnt;
        cout << cnt << endl;
    }
    return 0;
}





