Count TD number of different tables with same classes
<p>Let's say we have two tables with same classes, the only difference is the number of columns.</p>

<pre><code>&lt;table class="lives prono_live"&gt;
    &lt;tr&gt;
        &lt;td&gt;1&lt;/td&gt;
        &lt;td&gt;2&lt;/td&gt;
        &lt;td&gt;3&lt;/td&gt;
        &lt;td&gt;4&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;

&lt;table class="lives prono_live"&gt;
    &lt;tr&gt;
        &lt;td&gt;1&lt;/td&gt;
        &lt;td&gt;2&lt;/td&gt;
        &lt;td&gt;3&lt;/td&gt;
        &lt;td&gt;4&lt;/td&gt;
        &lt;td&gt;5&lt;/td&gt;           
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>I want a jQuery function which gaves me each table's TD number in one loop.</p>

<p>I created this code:</p>

<pre><code>$( '.lives.prono_live' ).each(function( index ) {
    alert($('.lives.prono_live td').length);
});
</code></pre>

<p>This code is not good, just partly. </p>

<p>What this code does:</p>

<ul>
<li>Shows two alert box with the value 9 and 9 </li>
</ul>

<p>What I want to have: </p>

<ul>
<li>Shows two alert box with the value 4 and 5 </li>
</ul>

<p>Anyone knows how to do this ?</p>
