Use sysctlbyname to get CPU core count