title: python - How to count the number of occurances of sub-string in a list
body: <p>if I have a list like</p>
  
  <pre><code>list = ['helloA', 'hiA', 'helloB', helloC']
  </code></pre>
  
  <p>I would like to count the number of sub-string <code>'hello'</code> occurances in that list.</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>Actually I already had a ways to count it like this code below:</p>
  
  <pre><code>numb = [x for x,y in enumerate(data['column']) if 'sub-string' in y]
  print len(numb)
  </code></pre>
  
  <p>I just want to know if there is any other way or better way to do it.
  Thank you</p>