[jQuery] Add the index or count next to a a filter :contains

[jQuery] Add the index or count next to a a filter :contains


Can anyone help me focus my search?
I am looking for a tutorial on how to add the count of the items that
are returned by a filter contains.
Here is my code for finding the text.
$(".sub-section-row td").filter(":contains(This is the line of text I
am looking for)").length
The filter above works and I can get the total number of td's with the
text specified. However what I also want to do is write back into the
document next to each line of text the number of the text that the
filter finds. For instance next to the text I want to display 1 of 25,
2 of 25, 3 of 25 etc...
<tr>
<td>
<br/>
This is the line of text I am looking for 1 of 25
</td>
</tr>
<tr>
&nbsp;
</tr>
<tr>
<td>
<br/>
This is the line of text I am looking for 2 of 25
</td>
</tr>
Does anyone know of a tutorial for doing this? I think my searches are
too general and returning an overwhelming amount of hits.
Thanks!
Mike