#include<bits/stdc++.h>
using namespace std;
using ll= long long int ;
ll CountDivisors( ll x) {
ll count= 0 ;
for ( int i= 1 ; i* i<= x; i++ ) {
if ( x% i== 0 ) {
if ( x/ i! = i) {
count+ = 2 ;
} else {
count++ ;
}
}
}
return count;
}
int main( ) {
ll n;
cin >> n;
while ( n-- ) {
ll x;
cin >> x;
cout << CountDivisors( x) << "\n " ;
}
r
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKdXNpbmcgbGw9bG9uZyBsb25nIGludDsKbGwgQ291bnREaXZpc29ycyhsbCB4KXsKICAgIGxsIGNvdW50PTA7CiAgICBmb3IoaW50IGk9MTtpKmk8PXg7aSsrKXsKICAgICAgICBpZih4JWk9PTApewogICAgICAgICAgICBpZih4L2khPWkpewogICAgICAgICAgICAgICAgY291bnQrPTI7CiAgICAgICAgICAgIH1lbHNlewogICAgICAgICAgICAgICAgY291bnQrKzsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KICAgIHJldHVybiBjb3VudDsKfQppbnQgbWFpbigpewogICAgbGwgbjsKICAgIGNpbj4+bjsKICAgIHdoaWxlKG4tLSl7CiAgICAgICAgbGwgeDsKICAgICAgICBjaW4+Png7CiAgICAgICAgY291dDw8Q291bnREaXZpc29ycyh4KTw8IlxuIjsKICAgIH0KICAgIHI=