Expose setting the thread count.