Count method fixed on MongoDB class