static internal int GetErrorCount(List<ConfigurationException> errors) { return (errors != null) ? errors.Count : 0; }