added tests for and debugged count functions for MongoCursor and MongoCollection