Count Uppercase Letters
Count the uppercase letters in a mixed-case word.
Input format
A single line with one word S (letters only, mixed case).
Output format
Print how many uppercase letters (A-Z) appear in S.
Constraints
- Values fit in a 64-bit signed integer
- Trailing whitespace and a trailing newline are ignored by the judge
Read from stdin, write to stdout. Sample cases below show the exact format.
Sample cases
Example 1
Input
HelloExpected output
1Example 2
Input
ABCdefExpected output
3