Counts how many of the flags can be matched

def score(self, flags: Flags) -> int:
        """
        Counts how many of the flags can be matched
        """

        score = 0

        for k, v in flags.items():
            if self.flags.get(k) == v:
                score += 1

        return score