def METHOD_NAME(self) -> None:
    """
    Compare the number of words.
    """
    words = []
    for line in self.output:
        words.extend(line.split())
    wordCount = len(words)
    sampleTextWordCount = len(self.sampleSplitText)
    self.assertEqual(wordCount, sampleTextWordCount)