moved command_counter to loggingtools