title: How to stop the filter after certain count(java 8 - lambda expression)
body: <p><strong><code>list.stream().filter((a,b) -&gt; a &lt; count);</code></strong></p>
  
  <p>I need to have two arguments as shown above in filter of stream, how to do that. In above code <strong>a</strong> is model class <strong>b</strong> is int field which counts the number of <strong>c's</strong> and it should stop filtering when it reaches count
  Please help me to write this.</p>
  
  <p>I want to skip the filtering when b (increment after each filter) reaches the count.</p>