// Find the number of artists and the maximum ConsituentID db.Artists.aggregate([ {$group: {_id:null, maxid: {$max : "$ConstituentID"}, count: {$sum : 1} } }, {$project: {_id:0, maxid:1, count:1}} ]);