Hello @Alireza_karimi ,
Actually, what you are doing is pretty complicated because of the way lists work - there are several routes to what you want, but I worked out one for you. I don’t have time to explain, but you can copy my document and see how it is done. I had to change the formula I gave to you earlier to make sure all the elements stay separate. The solution for counting is to count all items, than take all items once more, but delete the item you want to count (including the separation komma that belongs to that item) and replace it with nothing. The new string/list contains all the items minus the once you want to count. Add a count() to the second string and distract this from the first count - it gives you the count you are looking for. To fully understand split up the formulas in smaller sections (in extra helper columns and look at the generated lists.
My sample doc is here: Copy of Tracker
edit: I see now that the last column doesn’t count correctly - I will take another look.
It’s fixed - the last element in a list requires an extra ‘treatment’.
I am not entirely happy with my approach, but I do think it is robust enough to work with larger lists.
Looking forward to see some other solutions from the cracks, because I run into this type of thing regularly.