Powershell Select String Count Python Array Slicing