from typing import Counter


def sorted_count_of_values(cards):
    """
    Takes a tuple of pokertools.Card objects and returns a sorted
    list of counts of the card ranks.

    For example, consider this hand:
        hand('7h Ks 7d 7c Kd')
    Its corresponding list of numerical ranks is:
        [7, 13, 7, 7, 13].
    Counting each element and sorting returns:
        [3, 2].
    This is a pattern we can use to determine hand properties.
    """
    list_of_ranks = [card.numerical_rank for card in cards]
    return sorted(Counter(list_of_ranks).values(), reverse=True)