def number_of_occurrences(element, sample):
    quntity = 0

    for i in range(len(sample)):
        if element == sample[1]:
            quntity += 1

    return quntity