Powershell Select String Count Python Array Functions