Limit log to 5000 lines
Add count for running jobs