<doocs>1773.Count Items Matching a Rule_1.py
def countMatches( items: List[List[str]], ruleKey: str, ruleValue: str) -> int:
    count = 0
    m = {'type': 0, 'color': 1, 'name': 2}
    return sum([item[m[ruleKey]] == ruleValue for item in items])
def sample_funcname ( var_0 : List [ List [ str ] ] , var_3 : str , var_4 : str ) -> int :
    var_7 = 0
    var_13 = { 'type' : 0 , 'color' : 1 , 'name' : 2 }
    return sum ( [ var_15 [ var_13 [ var_3 ] ] == var_4 for var_15 in var_0 ] )
