input: Write a function to count the frequency of words in a given text.
  assert words_count("the quick brown fox jumps over the lazy dog the quick fox") == {'the': 2, 'quick': 2, 'brown': 1, 'fox': 2, 'jumps': 1, 'over': 1, 'lazy': 1, 'dog': 1}
  assert words_count("hello world hello") == {'hello': 2, 'world': 1}
  assert words_count("one fish two fish red fish blue fish") == {'one': 1, 'fish': 4, 'two': 1, 'red': 1, 'blue': 1}
output: def words_count(text):
      words = text.split()
      frequency = {}
      for word in words:
          if word in frequency:
              frequency[word] += 1
          else:
              frequency[word] = 1
      return frequency