Powershell Select String Count Python Method Optional Variable