input: Write a function to create a dictionary of words and their counts from a given text string. The function should return a dictionary where the keys are the words in the text and the values are the number of occurrences of each word. If the input text is empty, the function should return an empty dictionary.
  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 and the quick brown fox jumps over the lazy dog") == {'the': 3, 'quick': 2, 'brown': 2, 'fox': 2, 'jumps': 2, 'over': 2, 'lazy': 2, 'dog': 2, 'and': 1}
  assert words_count("") == {}
output: def words_count(text):
      if not text:
          return {}
      words = text.split()
      word_count = {}
      for word in words:
          if word in word_count:
              word_count[word] += 1
          else:
              word_count[word] = 1
      return word_count