pub fn get_thread_count(config_threads: Option<usize>) -> usize
Get the number of threads to use for parallel operations