Number of findings with severity.
severity
int count(Severity severity) => findings.where((f) => f.severity == severity).length;