def count_letters_digits(sentence):
    letter_count = 0
    digit_count = 0
    for letter in sentence:
        if letter.isdigit():
            digit_count += 1
        if letter.isalpha():
            letter_count += 1
        result = [letter_count, digit_count]
    return result


sentence = 'hi bro how are 9999'
print(count_letters_digits(sentence))

5ae6d412a388802c9b4811d8d4a209ce5925b80d
<mask token>

def count_letters_digits(sentence):
    letter_count = 0
    digit_count = 0
    for letter in sentence:
        if letter.isdigit():
            digit_count += 1
        if letter.isalpha():
            letter_count += 1
        result = [letter_count, digit_count]
    return result


<mask token>

def count_letters_digits(sentence):
    letter_count = 0
    digit_count = 0
    for letter in sentence:
        if letter.isdigit():
            digit_count += 1
        if letter.isalpha():
            letter_count += 1
        result = [letter_count, digit_count]
    return result


<mask token>
print(count_letters_digits(sentence))

def count_letters_digits(sentence):
    letter_count = 0
    digit_count = 0
    for letter in sentence:
        if letter.isdigit():
            digit_count += 1
        if letter.isalpha():
            letter_count += 1
        result = [letter_count, digit_count]
    return result


sentence = 'hi bro how are 9999'
print(count_letters_digits(sentence))
