Count the Capital Letters

Published by zatoichi49 in

Given a string of letters, how many capital letters are there?

Examples

capitalLetters("fvLzpxmgXSDrobbgMVrc") ➞ 6

capitalLetters("JMZWCneOTFLWYwBWxyFw") ➞ 14

capitalLetters("mqeytbbjwqemcdrdsyvq") ➞ 0

Notes

N/A

Watch a quick demo on how Edabit works.