Count number of divs inside a div
<pre><code>&lt;div id="full"&gt;
        &lt;?php $i=0; $j=1; foreach ($array as $image){ ?&gt;
        &lt;div id="image&lt;?php echo $i;?&gt;" class="img bg-img&lt;?php echo $j;?&gt;"&gt;&lt;img src="&lt;?php echo $image['image']; ?&gt;" &gt;&lt;/img&gt;&lt;/div&gt;
        &lt;?php $j++; $i++;} ?&gt;           

    &lt;/div&gt;
</code></pre>

<p>How do i get the number of divs contained by div id="full"?.</p>
