input: Write a function that takes in a text string and returns a dictionary of words and the number of times each word appears in the text string. The function should have the signature `def words_count(text):`.
  
  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 b b c c d d d d")=={'a': 3, 'b': 2, 'c': 2, 'd': 4}
output: def words_count(text):
      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