@staticmethod<EOL><INDENT>def count_words(pattern):<DEDENT>
word_pattern = re.compile(r'<STR_LIT>', re.IGNORECASE)<EOL>words = word_pattern.findall(pattern)<EOL>word_count = len(words)<EOL>word_len = sum(len(word) for word in words)<EOL>return word_count, word_len<EOL>
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)