input: Write a python function to count the number of words that start with a capital letter.
  assert count_capitals('Hello World') == 2
  assert count_capitals('this is A Test') == 1
  assert count_capitals('Python is Fun') == 2
output: def count_capitals(text):
      return sum(1 for word in text.split() if word[0].isupper())