Extract function for CorpusCount.