Learn to group documents and calculate metrics like sums, averages, and counts using the MongoDB $group aggregation stage.