input: Write a python function to count the number of capitalized letters in a string.
  assert countCapitalized("ViVaViVaViVa") == 6
  assert countCapitalized("Hello World") == 2
  assert countCapitalized("PYTHON") == 6
output: def countCapitalized(s: str) -> int:
      return sum(1 for c in s if c.isupper())