title: How to display length of filtered ng-repeat data
body: <p>I have a data array which contains many objects (JSON format). The following can be assumed as  the contents of this array:</p>
  
  <pre><code>var data = [
    {
      "name": "Jim",
      "age" : 25
    },
    {
      "name": "Jerry",
      "age": 27
    }
  ];
  </code></pre>
  
  <p>Now, I display these details as:</p>
  
  <pre><code>&lt;div ng-repeat="person in data | filter: query"&gt;
  &lt;/div
  </code></pre>
  
  <p>Here, query is modeled to an input field in which the user can restrict the data displayed.</p>
  
  <p>Now, I have another location in which I display the current count of people / person being display, i.e <code>Showing {{data.length}} Persons</code>  </p>
  
  <p>What I want to do is that when the user searches for a person and the data displayed is filtered based on the query, the <code>Showing...persons</code> also change the value of people being shown currently. But it is not happening. It always displays the total persons in data rather than the filtered one - how do I get the count of filtered data?</p>