def get_violate_count(metrics: list) -> int:
    """Get number of functions that violated the criteria"""
    if metrics:
        return sum(item["class"][0] == "greater-value" for item in metrics)
    else:
        return 0