Question: Which is the function that counts the number of appearance of value in a Vector?

a := [1,1,1,2,2,3];

number of appearance of 1 is 3

number of appearance of 2 is 2

number of appearance of 3 is 1

any short code can count this

Please Wait...