title: How to get number of TestNG threads at runtime
body: <p>I am running tests with TestNG but I want to dynamically limit the load on the tested server.
  To do that, I would like to verify at runtime that I am not sending more than X requests per second to the server, and if I am above, then have the thread to sleep.</p>
  
  <p>My question is: how can I get the number of threads at runtime?</p>
  
  <p>I was looking into ITestContext but it doesn't seem to be there.</p>