t=int(input())
def dem(n):
ans=1
gh=int(n**(1/2))
for i in range(2,gh+1):
if n%i==0:
d=0
while n%i==0:
d=d+1
n=n//i
ans=ans*(d+1)
if n!=1:
ans=ans*2
return ans
while t>0:
n=int(input())
res=dem(n)
print(res)
t=t-1
dD1pbnQoaW5wdXQoKSkKZGVmIGRlbShuKToKICBhbnM9MQogIGdoPWludChuKiooMS8yKSkKICBmb3IgaSBpbiByYW5nZSgyLGdoKzEpOgogICAgaWYgbiVpPT0wOgogICAgICBkPTAKICAgICAgd2hpbGUgbiVpPT0wOgogICAgICAgIGQ9ZCsxCiAgICAgICAgbj1uLy9pCiAgICAgIGFucz1hbnMqKGQrMSkKICBpZiBuIT0xOgogICAgYW5zPWFucyoyCiAgcmV0dXJuIGFucwp3aGlsZSB0PjA6CiAgbj1pbnQoaW5wdXQoKSkKICByZXM9ZGVtKG4pCiAgcHJpbnQocmVzKQogIHQ9dC0xCg==