Implement counting for multipart corpora