I want to get an int that indicates the number of repeated values in the list of int
fun iretate_list (fx : int list, tn : int) =
if null fx
then []
else
let val count = 0
in
if hd fx = tn then count + 1 :: [] else iretate_list(tl fx, tn)
end