input: Write a function to create a dictionary of words and their respective counts in a given text string. The function should split the text by spaces and count the occurrences of each word.
  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("Python is fun and Python is easy") == {'Python': 2, 'is': 2, 'fun': 1, 'and': 1, 'easy': 1}
  assert words_count("") == {}
  assert words_count("Hello Hello Hello") == {'Hello': 3}
  assert words_count("Testing one two three one") == {'Testing': 1, 'one': 2, 'two': 1, 'three': 1}
output: 
  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
  