add time and current count in the log file.