find content between two tag python : hi guys I want to extract only the number
 "4" in this html code by python beautiful soup what should I do?

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

    <ul class="left slider_pinfo">
        <li>
                        <i class="ihome-bed"></i>
                               " 4"
                                <div class="meta-tooltip">bed</div>
                        <span class="right listing-sp"></span>
                        </li>
                                                        <li>
                            <i class="ihome-arrows"></i>
                            "300meter"
                            <div class="meta-tooltip">meter</div>
                        </li>
                                                        <li>
                            <i class="ihome-building-age"></i>
                            "6years"
                            <div class="meta-tooltip">age</div>
                        </li>
                                </ul>

<!-- end snippet -->

 