input: 
  from typing import Dict
  
  
  def count_chars(string: str) -> Dict[str, int]:
      """ Generate a dictionary that contains the count of each character in a given string.
      >>> count_chars("Hello World")
      {'H': 1, 'e': 1, 'l': 3, 'o': 2, ' ': 1, 'W': 1, 'r': 1, 'd': 1}
      """
  
output:     char_count = {}
      for char in string:
          if char in char_count:
              char_count[char] += 1
          else:
              char_count[char] = 1
      return char_count