I'd expect a regular expression that extracts all uppercase letters into a new String, followed by simply taking the length of that String, to be the shortest code.
The regular expression could get messy though, and not being an expert at them I'm not going to try writing one
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004