in hq/app/logic/CredentialsReportDisplay.scala [118:127]
def reportStatusSummary(report: CredentialReportDisplay): ReportSummary = {
val reportStatuses = (report.humanUsers ++ report.machineUsers)
.map(_.reportStatus)
val warnings = reportStatuses.collect({ case Amber(_) => }).size
val errors = reportStatuses.collect({ case Red(_) => }).size
val others = reportStatuses.collect({ case Blue => }).size
ReportSummary(warnings, errors, others)
}