How do I find, count and print to the page the number of occurrences of a text string
<p>How can jquery find, count and print to the page, the number of occurrences of <code>'&lt;lineNo'</code> that exist inside a div 
called <code>'dialogue'</code> and do so without replacing all the text on the page?</p>

<pre><code>&lt;div id="dialogue"&gt;
&lt;div id="1"&gt;
 &lt;lineNo1&gt;1&lt;/lineNo1&gt;) 
 &lt;lineNo2&gt;2&lt;/lineNo2&gt;) 
 &lt;lineNo3&gt;3&lt;/lineNo3&gt;) 
&lt;/div&gt;

&lt;div id="2"&gt;
 &lt;lineNo1&gt;1&lt;/lineNo1&gt;) 
 &lt;lineNo2&gt;2&lt;/lineNo2&gt;) 
 &lt;lineNo3&gt;3&lt;/lineNo3&gt;) 
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Thank you.</p>
