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


def count_frequency(arr: List[Any]) -> Dict[Any, int]:
    """
    Calculates the frequency that a value appears in a list
    """
    return dict(Counter(arr).most_common())