identify the frequency count using java
<p>I need to identify the frequency count for the particular list. My list will look like</p>

<pre><code>gun,bun 
bun,gun,
pin,bin
bin,pin
stay,way.
</code></pre>

<p>From the above list, i need the output as</p>

<pre><code>gun,bun  2
pin,bin  2
stay,way 1
</code></pre>

<p>Suggest any ideas please.</p>
