count_eq takes as argument: a real and a real list (or matrix). count_eq returns the number of elements of the list (or matrix) which are equal to the first argument. Input:
Output: