def score(self, flags: Flags) -> int:
score = <NUM_LIT:0><EOL>for k, v in flags.items():<EOL><INDENT>if self.flags.get(k) == v:<EOL><INDENT>score += <NUM_LIT:1><EOL><DEDENT><DEDENT>return score<EOL>
Counts how many of the flags can be matched