When you click very fast to the next page, the document numbers in "Showing document ..." are updated while the documents themselves on the page are not, and thus giving an incorrect total number in the end. See also: https://stackoverflow.com/questions/57765152/couchdb-showing-different-record-count-with-pagination