JQ examples: group by + count

Your JSON
JQ Expression
Cheatsheet