how to count the number of occurrences of an element in a lis of list t in python code example Example: python count occurrences of an item in a list >>> [1, 2, 3, 4, 1, 4, 1].count(1) 3