fixed numClients bug

because of threads, value was getting incremented after count was being displayed. This change ensures that the counter is incremented before the value is displayed