how to count the amount of times a value appears in an array python code example Example: count how many times a value appears in array python >>> [1, 2, 3, 4, 1, 4, 1].count(1) 3