def count_smileys(arr):
    smiles = [':)', ':D', ':-)', ':-D', ':~)', ':~D', ';)', ';D', ';-)',
        ';-D', ';~)', ';~D']
    return sum(arr.count(smile) for smile in smiles)

b07ad691b3c3e23b71467a6e2ef034eee71de886
<mask token>

def count_smileys(arr):
    smiles = [':)', ':D', ':-)', ':-D', ':~)', ':~D', ';)', ';D', ';-)',
        ';-D', ';~)', ';~D']
    return sum(arr.count(smile) for smile in smiles)
