Counting and adding table rows.

Counting and adding table rows.

Hello...

Is it possible for jQuery to count the number of rows in a table and then add some more if there is less than a defined amount?

So that this table with less than 10 rows.....

<table class="testTable">
      <tr>
            <td>Foo...</td><td>Foo...</td><td>Foo...</td>
      </tr>
</table>

Becomes this...

<table class="testTable">
      <tr>
            <td>Foo...</td><td>Foo...</td><td>Foo...</td>
      </tr>
      <!--added by jQuery -->
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
      <tr>
            <td>...bar</td><td>...bar</td><td>...bar</td>
      </tr>
</table>


Thank you.