KnpLabs/knp-components — pull request #10 by MDrollette (2012-02-29 18:32:11+00:00)
Title: use the mongodb cursor for the count to prevent double queries

calling count() on the Query was resulting in a second identical find(). It's better to get the count from the mongo cursor as it disregards the limit and skip anyway.