get core count supported in macosx

but not tested...