Feature/add thread count

Move to thread controller.