Added count operator to mongo model