zefhemel/persistencejs — pull request #90 by superquadratic (2012-03-30 13:10:14+00:00)
Title: Account for skip and limit in DbQueryCollection::count()

The SQL generated by DbQueryCollections::count() did not account for the skip
and limit values of the QueryCollection, and always returned the total count.
Fixed by counting the result of a sub-query if necessary.