Add a helper function to determine the number of enabled CPUs