Introduction
The $count accumulator helps you count how many items are in a group. It is like counting apples in a basket.
When you want to know how many orders a customer made.
When you want to count how many students passed a test.
When you want to find out how many products are in each category.
When you want to count how many times a word appears in a text.
When you want to see how many employees work in each department.