add thread count