If I want to count the number of times a entry or entries occurs in a list respectively

Hi,I asked a similar question which was answered.Thanks to all. I was now trying to get a count of each element in a list that is repeated more than once.

To be more clear let us say there is a list with the following values

“red”:“blue”:“black”:“red”:black":“red”:“white”

I want to be able to count the number of times red occurs and number of times black occurs.

Thanks,

Subject: If I want to count the number of times a entry or entries occurs in a list respectively

At first glance, I’d use some modification of the previously suggested methods of counting the occurances of the desired list entry and wrap them up in a @For loop. You’d construct a list of the number of occurances as you went through.