<bos><start_of_turn>system
You are a helpful AI assistant.
lista de codigos linguisticos disponibles: ["de", "en"].<end_of_turn>
<start_of_turn>user
Wie können Sie die Vorkommen eines bestimmten Elements in einer Liste zählen?<end_of_turn>
<start_of_turn>model
def count_occurrences(lst, element):
    return lst.count(element)

my_list = [1, 4, 2, 4, 5, 4]
print(count_occurrences(my_list, 4))  # Output: 3
<end_of_turn><eos>