Use less expensive function, getTotalDocs(), than the getAllDocs().
Improve description.