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'.