Add synchronized method for displaying client count.