python check occurrences in list code example Example: count the number of times a value appears in python The count of i is: 2 The count of p is: 0