Add thread count information to stack traces.