def chars_count(word: str):
    """
    :param word: string to count the occurrences of a character symbol for.
    :return: a dictionary mapping each character found in word to the number of times it appears in it.
    """
    res = dict()

    for c in word:
        res[c] = res.get(c, 0) + 1

    return res