title: How to Bind OData $count from expanded collection in an XML view
body: <p>May be this is a basic question, but I have trouble binding the OData count in XML view.</p>
  
  <p>In the following example, I want to bind the count of products from the OData model. </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;List items="{/Categories}"} &gt;  
    &lt;ObjectListItem
      title="{CategoryName}"
      number="{path : 'Products/$count'}"
      numberUnit="Products"/&gt;
  &lt;/List&gt;
  </code></pre>
  
  <p>Each category needs to display count of products in the respective category as in </p>
  
  <pre><code>/Categories(1)/Products/$count
  /Categories(2)/Products/$count
  </code></pre>