fixed number of items bug in corpus.doctest