title: Magento getProductCount() on subcategory
body: <p>the getProductCount() in the second level of category echo count print out 0, i try different way but i diddn't figure out like mage get collection etc, i didn'd find any solution at this question</p>
  
  <pre><code>  &lt;?php
  $_category  = $this-&gt;getCurrentCategory();
  $collection = Mage::getModel('catalog/category')-&gt;getCategories($_category-&gt;entity_id);
  $helper     = Mage::helper('catalog/category');
  ?&gt;
    &lt;?php foreach ($collection as $cat):?&gt;
  
    &lt;?php 
    $cur_category = Mage::getModel('catalog/category')-&gt;load($cat-&gt;getId());
    $_img = $cur_category-&gt;getThumbnailUrl();
    ?&gt;
    &lt;div class="grid_4"&gt;
  &lt;div class="mineContent_grid_4"&gt;
  
   &lt;dl&gt;
    &lt;dt&gt;
      &lt;a href="&lt;?php echo $helper-&gt;getCategoryUrl($cat);?&gt;"&gt;
          &lt;?php echo $cat-&gt;getName();?&gt;
          &lt;img src="&lt;?php echo $_img?&gt;" title="&lt;?php echo $cat-&gt;getName();?&gt;" width="173" height="208"/&gt;
      &lt;/a&gt;
    &lt;/dt&gt;    
      &lt;?php $childLevel2Category = Mage::getModel('catalog/category')-&gt;getCategories($cat-&gt;entity_id);
      ?&gt;
      &lt;dd&gt;
          &lt;ol&gt;
            &lt;?php foreach ($childLevel2Category as $catLevel2) { ?&gt;
            &lt;?php
             $cur_category2 = Mage::getModel('catalog/category')-&gt;load($cat-&gt;getId());
             $count = $cur_category2-&gt;getProductCount();
            ?&gt;
  
            &lt;li&gt; &lt;a href="&lt;?php echo $helper-&gt;getCategoryUrl($catLevel2);?&gt;"&gt;&lt;?php echo $catLevel2-&gt;getName();?&gt; &lt;span&gt;(&lt;?php echo $count ?&gt;)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;?php } ?&gt;
          &lt;/ol&gt;
      &lt;/dd&gt;
      &lt;/dl&gt;
  &lt;/div&gt;
  &lt;/div&gt;
    &lt;?php endforeach;?&gt;
  </code></pre>