title: Angular.js. How to count ng-repeat iterations which satisfy the custom filter
body: <p>Here's my code:</p>
  
  <pre><code>&lt;div ng-show="?" ng-repeat="item in items | notEmpty"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Filter:</p>
  
  <pre><code>Kb.filter("notEmpty", function(){ 
    return function(input){
      var output=[];
      for(var i=0;i&lt;input.length;i++){
        if(input[i]){
          output.push(input[i]);
        }
      }
      return output;
  }});
  </code></pre>
  
  <p>I need to show/hide repeated s according the quantity of filtered items in the loop. 
  What is the best way to do it?</p>
  
  <p>Thanks</p>