Add function to find the number of physical CPUs.