fix count to use query

Fixes Issue #3 .   Verified by writing test (in lua-store-mongo).  Existing tests pass along with this one.