Powershell Group By Count Python Array Append