to count number
<p>Please help me to solve this problem. 
The problem is that I have a table which stores the all kind of alarms now I need to know count of one particular alarms. for example </p>

<pre><code>alarms
---------
 aaa
 aaa
 aaa
 ccc
 ccc
 aaa
 bbb
 bbb   
</code></pre>

<p>as shown in the above table I have to count how many times say (aaa) has repeated in this case its is 4 similarly for bbb in this case it is 2 and for ccc it is 2.</p>

<p>How to solve this problem?</p>
