modify the number of documents