title: Display number of Product in "My Cart" in header - Magento
body: <p>I want to display number of products as "My Cart" in Header in magento. act i found some code as 
  `
  
  <pre><code> $count = $this-&gt;helper('checkout/cart')-&gt;getSummaryCount();
   $total = $this-&gt;helper('checkout/cart')-&gt;getQuote()-&gt;getGrandTotal();
   if($count==0)
   {
       echo "0";
   }
   if($count==1)
   {
       echo $this-&gt;__('%s',$count);
   }
   if($count&gt;1)
   {
       echo $this-&gt;__('%s',$count);
   }
  </code></pre>
  
  <p>and used it in Top.phtml.</p>
  
  <p>Act its working fine. But issue is that, to display the correct data(total number of product in a cart) every time i have to delete the Cache. I just want, it should not be depended on cache, like in magento how it changing the count on the side bar just like that it should change on header also, should not be dependend on Cache. I am using, Magento 1.4.1. Its very urgent, if any one can help.. Thankz in Advance Friendz..</p>