some minor changes

I polished some rough edges while trying this out in an existing project.

The main impact of this Pull Request will be if you use len(query) anywhere, which needs to change to `query.count()`. This is more mongo-esque, and better reflects the fact query.count() is not a free operation. I've also added Document.count().