import string


def letterSpace(text):
    """Return the total number of letters (excludes spaces and punctuation)"""

    count = 0
    alphabet = string.ascii_lowercase + string.ascii_uppercase
    for char in text:
        if char in alphabet:
            count += 1
    return count