added Datastore.count with documentation and tests