#include <iostream>
using namespace std;
int kk(int x){
if(x < 2){
return 1;
}
if(x == 2){
return 2;
}
int res = 0;
for(int i = 1; i <= x / i; i ++){
if(x % i == 0){
res ++;
if(i != x / i){
res ++;
}
}
}
return res;
}
int main(){
int n;
int x;
cin >> n;
for(int i = 0; i < n; i ++){
cin >> x;
cout << kk(x) << endl;
}
return 0;
}