Powershell Select String Count In Java