Dynamically add into array and retrieve sum
<pre><code>foreach ($_POST['ECL'] as $lt) {

    //SQL select statements are run.  Each $lt is a where condition where results are obtained from the DB.
}
</code></pre>

<p>I want to take a count of each result and sum this up.  The total would be records obtained. I can get the record count for each individual $lt, but I am unable to sum them.  All help would be appreciated.</p>

<p><strong>[update] the number of $lt is not fixed.</strong> $lt can be 1,2,3,4...  Counter such as $i++ does no work</p>
