Powershell Select String Count Function Python