input: Write a function to accept a text string and return a dictionary where the keys are words from the text and the values are the number of times each word appears. If the input is an empty string, return an empty dictionary.
  
  def words_count(text):
   words_dict = {}
   if not text:
   return 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("Hello world world")=={'Hello': 1, 'world': 2}
  assert words_count("")=={}
  
  
output: def words_count(text):
      words_dict = {}
      if not text:
          return words_dict
      for word in text.split():
          if word in words_dict:
              words_dict[word] += 1
          else:
              words_dict[word] = 1
      return words_dict