def METHOD_NAME(case_count, count_op):
    invert_condition = False
    if count_op == "<":
        # count < N -> not( count > N - 1 )
        count_op = ">"
        invert_condition = not invert_condition
        case_count -= 1
    elif count_op == "<=":
        # count <= N -> not( count > N )
        count_op = ">"
        invert_condition = not invert_condition
    elif count_op == ">=":
        # count >= N -> count > N -1
        count_op = ">"
        case_count -= 1
    elif count_op == "!=":
        # count != N -> not( count = N )
        count_op = '='
        invert_condition = not invert_condition
    if count_op == "=" and case_count == 0:
        # count = 0 -> not( count > 0 )
        count_op = ">"
        invert_condition = not invert_condition
    return case_count, count_op, invert_condition