Adds a memoized file_count method to Corpus.