// Count the number of violations at the specified level public Int32 CountViolationLevel(ViolationLevel level) { return(Violations.Count(v => v.m_level == level)); }