my_list = [1, 2, 3, 2, 4, 2, 5]

# Count the number of occurrences of 2 in the list
count = my_list.count(2)

print(f"Number of occurrences of 2: {count}")