db.stu.aggregate([ {$project:{_id:0,name:1,age:1}} ])
db.stu.aggregate([ {$group:{_id:'$gender',counter:{$sum:1}}}, {$project:{_id:0,counter:1}} ])