This counts the occurrences of every value in the list, assuming each value is hashable. If you only care about one value, I think you're better off manually comparing each list item to the value and incrementing a counter when equality occurs.