BETA
This is a school problem. Successful submissions of this are not counted in user ratings.

Submissions : 663 Accuracy :

42.68

Count of camel case characters
     

Your friend is new to Programming. He is given a task in the school to find the total number of alphabets in camel case in a string s. Help your friend in doing so.

Input : 
The first line of input contains an integer T denoting the Test cases. Then T test cases follow. Each line of the test case contains a string s.

Output : 
For each test case in a new line print the count of camel case character in the string.

Constraints:
1<=T<=100
1<=|length of string|<=100

 

Example:
Input : 
3
ckjkUUYII
HKJT
njnnk

Output : 
5
4
0

**For More Examples Use Expected Output**


Contributor: Mohit Gupta...OMG :)

Set Default Code

					   
Result:
It is recommended to test your code before clicking 'Submit' button!



                   



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.