Added documentation to the CountingThread class