Vuejs return result count from filterby
<p>How do you get the number of results returned after filtering a collection?</p>

<p>I created a side filter:</p>

<pre><code>filters:{
  count: function(value){
    return value.length;
  }
},
</code></pre>

<p>I then called the count filter using:</p>

<pre><code>&lt;span v-text="results | count"&gt;&lt;/span&gt;
</code></pre>

<p>But this is not returning the count of the returned result from my filtered result.</p>

<p>Here's my <code>results</code> object</p>

<pre><code>results: [
      {
        id: 1,
        purchaseDate: 2016-10-15 09:34:00,
        fullName: 'Test 1',
        email: 'test@test.com',
      },

      {
        id: 2,
        purchaseDate: 2016-10-17 09:34:00,
        fullName: 'Test 2',
        email: 'test@test.com',
      }
    ]
</code></pre>

<p>When my filter returns <code>Test 2</code>, I should get a count of 1 instead of 2 (total number of results).</p>