#include <iostream>
#include <vector>
#include<algorithm>
#include<cmath>
using namespace std;


int candelete(int x,int y){
    return !(x%y);
}


int main(){
    int n;
    cin>>n;
    int x;
    int ans=0;
    for(int i=0;i<n;i++){
        cin>>x;
        float sqr=sqrt(x);
        for(int j=1;j<sqr;j++){
            if(candelete(x,j))ans+=2;
        }
        if(int(sqr)*int(sqr)==x)ans+=1;
        cout<<ans<<endl;
        ans=0;
    }
    return 0;

}