How can I find the number of cores available to my application from within Java code?