def count_frequency(my_list): 
    """
    count the frequency of elements in a list using a dictionary 
    
    Args:
        my_list (list): List
    
    Returns:
        dict: Dictionary containing unique item and frequency
    Example::
        >> my_list = ["happy", "neutral", "happy"]
        >> count_frequency(my_list)
        {'happy': 2, 'neutral': 1}
    """
    # Creating an empty dictionary  
    freq = {} 
    for items in my_list: 
        freq[items] = my_list.count(items) 
    return freq