How to get number of list element (ul tag) of HTML using Get matching XPath count?
<p>I'm kind of new to XPATH-query. I use RF and selenium2library and the XPath Helper-plugin in chrome to test a certain website page. I'm new to HTML/CSS/JavaScript as well.</p>

<p>The web page consists of two ULs (lists) for left and right sides of the page and each one has a few LIs which have few divisions comprised of widgets (JPEG images etc).</p>

<p>I need to <strong>count this list rows</strong> (number of LIs in each UL). I have already done the samething  in a drop down menu to count its elements with no problem (perhaps because it was considered 
a web element). But right now I use the same "Get Matching Xpath Count" which returns almost the whole page HTML source instead of a number and it then fails. </p>

<p>All my program is based on getting the number of LIs in a UL (of drop down menu, page, table,...). so I wonder what to do now. Here is an example of the HTML code of the page:</p>

<pre><code>&lt;ul class="rqcol" id="col8a580456553ae"&gt;
 &lt;li class="rqportlet"  id="por8a58045655"&gt;
   &lt;div id="hdrpor8a580" class="rqhdr" onmouseover="RQ.util.showTools(this)" onmouseout="RQ.util.hideTools(this)"&gt; &lt;/div&gt; &lt;/li&gt;
 &lt;li class="rqportlet" id="por8a580456" &gt;
   &lt;div id="hdrpor8a581" class="rqhdr" onmouseover="RQ.util.showTools(this)" onmouseout="RQ.util.hideTools(this)"&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>and my code was: </p>

<pre><code>Get Matching Xpath Count  |  //ul[@id="ccol8a580456553ae"]/li
</code></pre>

<p>which does give me some texts plus HTML code.i also tried:</p>

<pre><code>Get Length |  //ul[@id="ccol8a580456553ae"]
</code></pre>

<p>which doesn't give me 2 but a big number. </p>