Add a thread count counter.