title: Angular 2 *ngFor items count outside the loop
body: <p>I am a novice in angular and I have a silly problem, how can I show actual number of items outside *ngFor loop ?</p>
  
  <p>I'm using filter and pagination pipes like this</p>
  
  <p><code>*ngFor="let item of items| filterBy: ['name','category']: queryString | paginate: config; let i = index; let c = count"</code></p>
  
  <p>I know that there is a variable 'count' but of course it is available only in that loop, how can I get this variable in component, do I need to create new component, put it in that loop and pass 'count' through directives or there is some simpler, cleaner way?</p>