Added coude to count the number of CPUs