Dengan agregat:
db.collection.aggregate(
// Pipeline
[
{
$group: {
_id: "$date"
}
},
{
$group: {
_id:1,
count: {$sum : 1 }
}
},
]
)