Detect amount of CPUs.