Merge counter log to 1 line and output last 4 lines of log.