var app = angular.module('plunker', []);

app.controller('MainCtrl', function() {
  var vm = this;
  vm.people = ['fox', 'rosi', 'err3', 'rob', 'cesar', 'geoff'];
});
<!DOCTYPE html>
<html ng-app="plunker">

  <head>
    <meta charset="utf-8" />
    <title>AngularJS Plunker</title>
    <script>document.write('<base href="' + document.location + '" />');</script>
    <link rel="stylesheet" href="style.css" />
    <script data-require="angular.js@1.2.x" src="https://code.angularjs.org/1.2.21/angular.js" data-semver="1.2.21"></script>
    <script src="app.js"></script>
  </head>

  <body ng-controller="MainCtrl as vm">
    <h2>List of people</h2>
    Search: <input type="text" ng-model="search">
    <ul>
      <li ng-repeat="person in vm.filteredPeople = (vm.people | filter:search)">
        {{person}}
      </li>
    </ul>
    <p ng-hide="vm.filteredPeople.length">There is no result</p>
    
    Number of filtered people: {{vm.filteredPeople.length}}
  </body>

</html>
/* Put your css in here */