<doocs>1684.Count the Number of Consistent Strings_1.py
def countConsistentStrings( allowed: str, words: List[str]) -> int:
    res = 0
    chars = set(allowed)
    for word in words:
        find = True
        for c in word:
            if c not in chars:
                find = False
                break
        if find:
            res += 1
    return res
def sample_funcname ( var_0 : str , var_2 : List [ str ] ) -> int :
    var_6 = 0
    var_8 = set ( var_0 )
    for var_9 in var_2 :
        var_11 = True
        for var_12 in var_9 :
            if var_12 not in var_8 :
                var_11 = False
                break
        if var_11 :
            var_6 += 1
    return var_6
