title: Search within tags with BeautifulSoup Python
body: <p>I wanted to search within the  tag:</p>
  
  <pre><code>&lt;div id="cmeProductSlatePaginiationTop" class="cmePaginiation"&gt;
     &lt;ul&gt;
        &lt;li class="disabled"&gt;
        &lt;li class="active"&gt;
        &lt;li class="away-1"&gt;
        &lt;li&gt;
     &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Basically, I want to count the number of occurunces of <code>&lt;li ..&gt;</code> in this div. However, when I used beautifulsoup, I can't get the tags in between the <code>div</code></p>
  
  <pre><code>    soup = BeautifulSoup(resp)
      tags = soup.find('div', attrs = {'class' : 'cmePaginiation'})
      print tags
  </code></pre>
  
  <p><code>&gt;&gt;&gt; &lt;div id="cmeProductSlatePaginiationTop" class="cmePaginiation"&gt;&amp;nbsp;&lt;/div&gt;</code></p>
  
  <p>Is there a way to count the number of instances of <code>li</code> (In this example 4)?</p>