Returns the number of cores.
getCores(cores)
cores
the number of cores, it is 1 in windows platform.
cores <- getCores(2L)