Minor cleanups in pipeline
Extract type count from CorpusCount