def get_n_matched_associations(feedback: str) -> int:
    """
    Return the number of matched associations in the feedback of a single submission.
    """
    total_matches = feedback.count("Matched")
    class_matches = feedback.count("Class Matched")
    attr_matches = feedback.count("Attribute Match") + feedback.count("Attribute Misplaced Match")

    return max(0, total_matches - class_matches - attr_matches)