class Solution(object):

    def countConsistentStrings(self, allowed, words):
        """
        :type allowed: str
        :type words: List[str]
        :rtype: int
        """
        allowed = set(allowed)
        return sum(int(set(word).issubset(allowed)) for word in words)

4d342c210084f72080c1db4e57540ec29b120a34
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def countConsistentStrings(self, allowed, words):
        """
        :type allowed: str
        :type words: List[str]
        :rtype: int
        """
        allowed = set(allowed)
        return sum(int(set(word).issubset(allowed)) for word in words)
