private void setCount() throws WindowsException {
try {
JIVariant[] results = dispatch.callMethodA("ConnectServer", crazyLongMicrosoftArgs);
IJIDispatch wbemServices_dispatch = (IJIDispatch) JIObjectFactory.narrowObject((results[0]).getObjectAsComObject());
JIVariant[] results2 = wbemServices_dispatch.callMethodA("InstancesOf", new Object[]{new JIString("Win32_Process"), Integer.valueOf(0), JIVariant.OPTIONAL_PARAM()});
IJIDispatch wbemObjectSet_dispatch = (IJIDispatch) JIObjectFactory.narrowObject((results2[0]).getObjectAsComObject());
variant = wbemObjectSet_dispatch.get("_NewEnum");
JIVariant Count = wbemObjectSet_dispatch.get("Count");
count = Count.getObjectAsInt();
}