find number of times element appears in 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