Following this question on how to determine number of filtered out elements, I created the following angular code:
<input type="text" ng-model="query" placeholder="Enter query...">
<div ng-if="filteredData.length!=data.length"> Showing {{filteredData.length}} of {{data.length}}</div>
<div ng-repeat="datum in filteredData = (data | orderBy: 'name' : reverse | filter:query)"> 
    ....
</div>
However, for some reason filteredData never actually gets set and Showing  of 10 always appears. I used this answer to get the scope variable for my controller, but filteredData doesn't show up there despite all the other variables showing up.
Also worth noting: the contents of the repeat work fine, its just that filteredData that isnt being set.
 
     
    