Powershell Group By Count Python String Slicing Example