'''

    main.py

    Created by JO HYUK JUN on 2022
    Copyright © 2022 JO HYUK JUN. All rights reserved.

'''


def solution(array, n):
    dic = {}
    
    for a in array:
        if a in dic:
            dic[a] += 1
        else:
            dic[a] = 1
    
    if n in dic:
        return dic[n]
    else:
        return 0