title: Count cells with a specific word in cell array in MATLAB
body: <p>Suppose that we have this cell array :</p>
  
  <pre><code>X = {'Good' 'Bad' 'Good'; 
       'Bad' 'Good' 'Bad'; 
       'Bad' 'Bad' 'Bad'; 
       'Good' 'Bad' 'Good'; 
       'Good' 'Good' 'Good'};
  </code></pre>
  
  <p>How can I count occurrences of <code>Good</code> and <code>Bad</code> in every row?</p>
  
  <p>Thanks.</p>