Powershell Select String Count Java