# How do I count the occurrences of a list item in Python?

You can use the `count()` method of a list to count the number of occurrences of an item in the list.

For example:

```python
my_list = ['a', 'b', 'a', 'c', 'a']
print( my_list.count('a') ) # 3
```

This will return 3, because the element 'a' occurs 3 times in the list.

You can also use the `collections` module's `Counter` class to count the occurrences of items in a list.

For example:

```python
from collections import Counter

my_list = ['a', 'b', 'a', 'c', 'a']
count = Counter(my_list)
print( count['a'] ) # 3
```

This will return a `Counter` object with the count of each element in the list. You can then access the count of a specific element using the element as the key.

Note that the `count()` method only works on lists, while the `Counter` class can be used to count the occurrences of items in any iterable.