from typing import List
from typing import Counter


def get_set_value(dice: List[int], set_size: int) -> int:
    """Return the value of a set of dice."""
    set_value = 0
    for value, count in Counter(dice).items():
        if count == set_size:
            set_value = value
    return set_value