input: Write a function to count the occurrences of each character in a given text.
  assert character_count("hello world") == {'h': 1, 'e': 1, 'l': 3, 'o': 2, ' ': 1, 'w': 1, 'r': 1, 'd': 1}
  assert character_count("test") == {'t': 2, 'e': 1, 's': 1}
  assert character_count("aabbcc") == {'a': 2, 'b': 2, 'c': 2}
output: def character_count(text):
      count_dict = {}
      for char in text:
          if char in count_dict:
              count_dict[char] += 1
          else:
              count_dict[char] = 1
      return count_dict