Fixed error count reporting