from typing import List
from typing import Dict


def calc_freq(input_list:List[int]) -> Dict[int, int]:

    """
    Return Dict with Count of each number present
    input List

    Parameters
    ----------
    input_list : List[int]
        List of integers

    Returns
    -------
    Dict[int, int]

    Raises
    ------
    TypeError
        when input is not List.
    """

    if not isinstance(input_list, list):
        error_msg = f"input_list must be List of Integers (type: List[int])."
        raise TypeError(error_msg)

    result:Dict[int, int] = {}

    for integer in input_list:
        result[integer] = result.get(integer, 0) + 1
    
    return result