BETA
School Problem's Submission isn't counted in score!

Total Submissions: 815 Accuracy:

45.89%

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 Input/Output Examples Use 'Expected Output' option **

Contributor: Mohit Gupta...OMG :)

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

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