input: Write a python function to count the occurrences of each word in a given text.
  assert count_word_occurrences("hello world hello") == {'hello': 2, 'world': 1}
  assert count_word_occurrences("test this function test this") == {'test': 2, 'this': 2, 'function': 1}
  assert count_word_occurrences("one two three one two one") == {'one': 3, 'two': 2, 'three': 1}
output: def count_word_occurrences(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