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