Python Function Reference

count
Return the number of times x appears in the list.
Python 3.13
list.count(x)
Examples
Python 3.13
>>> [1, 2, 2, 3].count(2)
2