title: show count of only configurable products of current category
body: <p>i want to show count of only configurable products of current category on category page. for that I have written following code...</p>
  
  <pre><code>&lt;?php $cate = Mage::registry('current_category')-&gt;getName();
  
                  $total=0;
  
  
                 $category = Mage::registry('current_category');
  
                 $products = $category-&gt;getProductCollection();
  
                foreach ( $products as $_product )
                   if ($_product-&gt;isConfigurable())
                   {
                      $total++;
                   }
                   echo $cate."(".$total.")"; ?&gt;
  </code></pre>
  
  <p>my problem is the code is showing the total count of configurable products of all child categories... can anyone help me with this?</p>