title: Laravel 5.0 blade template and count() conditions
body: <p>I've a collection (tasks) and I want to count inside may blade template only completed tasks.</p>
  
  <p>Ex.
  Total tasks = 7</p>
  
  <p>Total completed tasks = 2</p>
  
  <p>Total in progress tasks = 5</p>
  
  <p>I try </p>
  
  <pre><code>{{ count($tasks-&gt;completed = 100) }}
  </code></pre>
  
  <p>And it works, but if I try</p>
  
  <pre><code>{{ count($tasks-&gt;completed &lt; 100) }}
  </code></pre>
  
  <p>I got an error. </p>
  
  <p>Any help? </p>
  
  <p>Sorry, I'm a newbie on laravel.</p>
  
  <p>(laravel 5.0)</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I need to show something like: </p>
  
  <p>Completed (2) / in progress (5).  </p>
  
  <p>In my controller I've:</p>
  
  <pre><code>public function index()
  {
      $tasks = Task::All();
      $completed = $tasks-&gt;where('completed', 100);
      //I dunno how...
      $inprogress = ...;
      return view('pages.projects', compact('projects', 'tasks', 'completed', 'inprogress'));
  }  
  </code></pre>
  
  <p>In the db, the tasks table have a 'completed' (integer) column that I use to check the status of the task (0% to 100%, 100% is completed).</p>