added to count the number of cpus