Add errorCount and warningCount to Diagnostic class