I want to count a number of character before the <ul> tag
like example.
<p class="para1">
Here are the list of things i like
<ul>
<li> I like school</li>
</ul>
</p>

so I want to get the number of character count before a <ul> tag