from typing import Dict
from typing import Any


def CountList(L: list) -> Dict[Any, int]:
    """
    Count the number of occurances of each index

    Args:
        L (list): The input List

    Returns:
        Dict[Any, int]: A dictionary of indexes and how often they occur.
    """
    counted = {}
    for x in L:
        if x in counted.keys():
            counted[x] += 1
        else:
            counted[x] = 1
    return counted