Powershell Group By Count Python For Lists