The first line of the input contains an integer, 'T,’ denoting the number of test cases.
The first and only line of each test case contains the integer 'N'.
For each test case, print an integer denoting the total count of special numbers between 1 to N.
Print the output of each test case in a new line.
You do not need to print anything. It has already been taken care of. Just implement the given function.
1 <= T <= 10^4
1 <= N <= 10^9
Time Limit: 1 sec