compute_num_cores(max_cores, nchunks, ...)
compute_num_cores
Compute the number of chunks to be created for multiprocessing.