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.
The first line of input contains an integer T, denoting the number of testcases. For each testcase there will be single line containing string S as an input.
For each testcase in a new line, print the count of camel case character in the string.
1 <= T <= 15
1 <= |S| <= 100
Testcase 1: The camel case characters present in the given string are: 'U', 'U', 'Y', 'I', 'I'.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.