function returning the number of cores is unsigned