add error count and warning count