input: Write a function to create a dictionary that counts the number of times each word appears in a given text string. The function should split the text by spaces and populate the dictionary with each word as the key and its count as the value.
  
  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
  
  print(words_count("A quick brown fox jumps over the lazy dog"))
  # Expected output: {'A': 1, 'quick': 1, 'brown': 1, 'fox': 1, 'jumps': 1, 'over': 1, 'the': 1, 'lazy': 1, 'dog': 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