title: get count of cart items in Master Page
body: <p>I have a master page and i want to get the count of items in cart i have added this in MasterPageBase </p>
  
  <pre><code>public int CartTotalCount
  {
     get
     {
       CartItemCollection ccart=new CartItemCollection();
       return ccart.Count;
     }
  }
  </code></pre>
  
  <p>And now how could i assign this to a variable so that i could show it in a span or div to show the count along with cart image</p>