parameters: (self, allowed, words)
return_statement: return result
docstring: :type allowed: str
          :type words: List[str]
          :rtype: int
docstring_summary: :type allowed: str
          :type words: List[str]
          :rtype: int
docstring_tokens: : type allowed : str : type words : List [ str ] : rtype : int
function: def countConsistentStrings(self, allowed, words):
          """
          :type allowed: str
          :type words: List[str]
          :rtype: int
          """
          lookup = [False]*26
          for c in allowed:
              lookup[ord(c)-ord('a')] = True
          result = len(words)
          for word in words:
              for c in word:
                  if not lookup[ord(c)-ord('a')]:
                      result -= 1
                      break
          return result
function_tokens: def countConsistentStrings ( self , allowed , words ) : lookup = [ False ] * 26 for c in allowed : lookup [ ord ( c ) - ord ( 'a' ) ] = True result = len ( words ) for word in words : for c in word : if not lookup [ ord ( c ) - ord ( 'a' ) ] : result -= 1 break return result