Ensuring thread_count is a integer.