Count the text in a listbox together : <p>Hello Stackoverflow community,
I have the following problem.
I created a listbox with this format (the data is always different):</p>

<pre><code>item1
item2
item1
item2
item1
item3
item1
</code></pre>

<p>but now i want to sort this and count it together like that:</p>

<pre><code>4 x item1
2 x item2
1 x item3
</code></pre>

<p>I just can't think of a method that would be able to do this with a dynamic text. Thanks for all your help in advance.</p>
