Count errors and updates on log