Hi @KW_N_A ,
You can use $group
db.Orders.aggregate([ { $group: { _id: “$customer_id”, total_count: {$sum:1} } } ])
https://mongoplayground.net/p/fDd26mnAHDL
If you need to retrieve information from the Customers collection, you can add a $lookup
$lookup