from typing import Counter


def count_letters(x):
    """
    Count how many chars are in a string
    """
    counter = Counter()
    for word in x.split():
        counter.update(word)
    return sum(counter.values())