def letter_counter(lst: list, letter: str) -> int:
    """Count the number of times letter shows up in the word search."""
    return sum([1
                for row in lst
                for letters in row
                if letter == letters]
               )