added counter for reducerthreads and mapperthreads