from typing import Dict


def getLetters(string: str) -> Dict[str, int]:
    """Gets the letters of string and puts their occurences in a dictionary"""
    letters: Dict[str, int] = {}

    for letter in string:
        letters[letter] = letters.get(letter, 0) + 1

    return letters