Database
[{_id:"Team 1",count:1200},{_id:"Team 2",count:1170},{_id:"Team 3",count:1006},{_id:"Team 4",count:932},{_id:"Team 5",count:931},{_id:"Team 6",count:899},{_id:"Team 7",count:895},]
Query
db.collection.aggregate([{$sort:{count:-1}},{$group:{_id:null,all:{$push:"$$ROOT"},sum:{$sum:"$count"}}},{$project:{_id:null,sum:1,res:{$slice:["$all",5]}}},{$project:{sum:1,res:1,topN:{$reduce:{input:"$res",initialValue:0,in:{$add:["$$value","$$this.count"]}}}}},{$project:{_id:0,sum:1,res:{$concatArrays:[[{_id:"other",count:{$subtract:["$sum","$topN"]}}],"$res"]}}},{$unwind:"$res"},{$project:{_id:"$res._id",count:"$res.count",percent:{$round:[{"$multiply":[{$divide:["$res.count","$sum"]},100]},0]}}}])