For this Question: You are given a number n. You need to find the count of digits in n.The first line of input contains T denoting the number of test cases. Each testcase contains one line of input containing n.
For Python, Language Just Completes the function.

<b>Constraints:</b>
1 &le; T &le; 100
1 &le; n &le; 10<sup>8</sup>For each testcase, in a newline, print the count of digits in n.Input:
2
1
99999
Output:
1
5

<b>Explanation:</b>
Testcase 1: The number of digits in 1 is 1.
Testcase 2: The number of digits in 99999 is 5, I have written this Solution Code: import java.io.*;
import java.util.*;

class Main {

    public static int countDigit(int a)
    {
        if(a==0)
        {
            return 0;
        }
        else
        {
            return 1 + countDigit(a/10);
        }
    }
	public static void main (String[] args)
    {

        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();

        for(int i=0;i<T;i++)
        {
        int n = sc.nextInt();
        System.out.println(countDigit(n));
        }
	}
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?