import string


def get_letter_counts(filename):
    """Return a dictionary with letter -> count pairs from a wordlist."""
    counts = dict.fromkeys(string.ascii_lowercase, 0)
    with open(filename) as file:
        for line in file:
            for char in line.rstrip():
                counts[char] += 1
    return counts