Using javascript count string in a Paragraph
<p>How to count a string in a given paragraph.</p>

<p>for example:-
 my string is "sharepoint 2010"</p>

<p>my paragraph is:- <strong>sharepoint 2010</strong> is good.<strong>sharepoint 2010</strong> is                     nice.<strong>sharepoint 2010</strong> is better then sharepoint 2007.</p>

<p>here  count is:- 3 cause sharepoint 2010 repeat 3 times </p>

<p>my problem is using javascript how i compare a string to paragraph.</p>
