detect num of CPUs