title: Counting number of occurrence of a specific string using Magento collection?
body: <p>I have mapped my custom table with Magento, so that i can fetch all data in it using below</p>
  
  <pre>
   <code>Mage::getModel('custom/filter')->getCollection();</code>
  </pre>
  
  <p>Below is the sample table i have mapped</p>
  
  <pre>
   <code>
  filter_id filters
  ------------------
  1         5,6,5
  3         77,8,5,77
  10        22,55,33
   </code>
  </pre>
  
  <p>I need to count the number of occurence of a specific string under field filters in this table using collection.</p>
  
  <p>say for example, if i want to count occurence of 77 in 2nd row (filter_id = 3).
  How do i do it with model collection?</p>
  
  <p>I know i can use query to directly query the database using query methods in magento, but i am trying to do this in collection way.</p>
  
  <p>Any suggestions would be helpful.</p>
  
  <p>Thanks,</p>
  
  <p>Balan</p>