code: def count_words(pattern):
          
          word_pattern = re.compile(r'(\b(?<![\(\)\[\]\|])\w\w*\b(?![\(\)\[\]\|]))', re.IGNORECASE)
  
          words = word_pattern.findall(pattern)
          word_count = len(words)
          word_len = sum(len(word) for word in words)
  
          return word_count, word_len
docs: Count the number of words in a pattern as well as the total length of those words
          :param pattern: The pattern to parse
          :type  pattern: str
  
          :return: The word count first, then the total length of all words
          :rtype : tuple of (int, int)