update the configure script
added count() to MongoQuery class