check number of child of current category magento <p>in magento ,check number of sub category of current category in category page</p> <pre><code>$cat = Mage::getModel('catalog/category')-&gt;getCollection()-&gt;load($id); </code></pre> <p>$subcats = $cat->getChildren();</p> <p>by using this code we have get chil category but we want to check number of sub category of current category in magento</p>