Update number of cores