Added count class method to MongoObj
Added test for count