https://regeneratingserumolayfast.blogspot.com/2024/03/group-by-count-of-objects-within-array.html
Group By Count Of Objects Within An Array In Vanilla Javascript