from typing import List
from typing import Any
from typing import Dict
from typing import Counter


def get_common_items(list_to_count: List[Any], top_n: int) -> Dict[Any, int]:
    """Get the n most common items in descending order in a list of items.

    Args:
        text (List[Any]): List of items to be counted.
        top_n (int): This sets the limit for how many of the common items to return.

    Returns:
        Dict[str, int]: Dictionary with keys given by the item, and the value being count of the item in the list.

    """
    counts = Counter(list_to_count)
    return {item: count for item, count in Counter(counts).most_common(top_n)}