input: Write a function to count the frequency of each word in a given text string and return the result as a dictionary. If the input text string is empty, return an empty dictionary.
  
  def words_count(text):
   words_dict = {}
   for word in text.split(' '):
   if word in words_dict:
   words_dict[word] += 1
   else:
   words_dict[word] = 1
   return words_dict
  
  assert words_count("A quick brown fox jumps over the lazy dog") == {'A': 1, 'quick': 1, 'brown': 1, 'fox': 1, 'jumps': 1, 'over': 1, 'the': 1, 'lazy': 1, 'dog': 1}
  assert words_count("the quick brown fox jumps over the lazy dog") == {'the': 2, 'quick': 1, 'brown': 1, 'fox': 1, 'jumps': 1, 'over': 1, 'lazy': 1, 'dog': 1}
  assert words_count("") == {}
  assert words_count("a a a a b b b b c c c") == {'a': 4, 'b': 4, 'c': 3}
  assert words_count("Python is fun Python is awesome") == {'Python': 2, 'is': 2, 'fun': 1, 'awesome': 1}
output: def words_count(text):
      words_dict = {}
      if text:
          for word in text.split():
              if word in words_dict:
                  words_dict[word] += 1
              else:
                  words_dict[word] = 1
      return words_dict