<ul>
<li data-ng-repeat="item in list | filter:search>
<span>{{item.name}}</span>
</li>
</ul>
angular.module('app', [])
.controller('aCtrl', function() {
this.count = 0;
})
<ul ng-controller='aCtrl as ctrl' >
<li data-ng-repeat="item in [23,4,5,6,7] | filter:search">
<span ng-init='ctrl.count = ctrl.count + 1'>{{item.name}}</span>
</li>
</ul>