edwardhotchkiss/mongoose-paginate — pull request #4 by Giuliano84 (2013-08-23 11:04:19+00:00)
Title: Fixed pageCount math operation

You have to return the smallest integer greater than or equal to a number.
So if count/resultsPerPage = 1.6 you need pageCount=2 and not =1 ;)