automatic cpu count for multiprocessing