input: Write a python function to count the occurrences of each character in a given string.
  assert get_char_count("hello") == {'h': 1, 'e': 1, 'l': 2, 'o': 1}
  assert get_char_count("test") == {'t': 2, 'e': 1, 's': 1}
  assert get_char_count("character") == {'c': 2, 'h': 1, 'a': 2, 'r': 2, 't': 1, 'e': 1}
output: def get_char_count(s):
      char_count = {}
      for char in s:
          if char in char_count:
              char_count[char] += 1
          else:
              char_count[char] = 1
      return char_count