read thread_count from args