Python count list method - count an occurences of object or value in the list

Example:

my_list = [15, 6, 7, 8, 35, 12, 14, 15, 4, 10]
print(my_list.count(15))
Output:
2