Feature/add thread count

Move method to ThreadController