An array can also contain duplicate values. So, the frequency of an element in an array is the number of times it appears.