Count occurrencies of list items in list

Hi there,
a fairly easy question that is puzzling me…
How to get a list of occurrencies of a list item in another list?

From a list I got a list of uniqueItems and now I want to get the occurrencies of each uniqueitem in the original list and return a simple list with integers count.

I.e.

OrigList = [value1, value2, value3, value1, value4, value3 ]
Uniquelist = [value1, value2, value3, value4]

What I want = [2,1,3,1]

Sorry i cannot post the dyn graph at the moment as I’m off my pc.
Thanks in advance for your help.

Hi! Is this what you want?

Awesome! That’s what I was looking for.
Thanks a lot @Einar_Raknes!

1 Like