Made a separate function for the count
Made a separate function for the count

For optimization reasons, the find() function does not perform a count
anymore. If you need a count, do it separately. You can re-use the query
argument.

wthielen/ZF1E,wthielen/zf1e