How do I count the occurrences of a list item?

Given an item, how do I count its occurrences in a list in Python?

30
30

Leave a Comment