How to get quantity of the same item on the list?

Let’s say that I have list (abc, xyz, 123, abc, abc, 123). Now I want to get info how many times item is in the list.

Example:
abc: 3
xyz: 1
123: 2

I was trying to find this topic on community but problems already discussed are not exactly the same. Thank you for your help in advance!

Separate the list in commas (split). Loop inside another loop Take the N element and compare it to the original list in the second loop and use a counter to set the quantity.

List split
( 111 222 111 444 888 444 111 444)

( 111,222,111,444,888,444,111,444)
This a original list

Thank you!

1 Like

Welcome ! Test, and give feedback if solved.