public function testCount()
 {
     $this->assertEquals(0, $this->taskManager->count());
     $task = new Task();
     $task->setDescription('foo');
     $task->addTag('bar');
     $this->taskManager->save($task);
     $this->assertEquals(1, $this->taskManager->count());
     $this->assertEquals(1, $this->taskManager->count('+bar'));
     $this->assertEquals(0, $this->taskManager->count('+baz'));
 }
 /**
  * @return int
  */
 public function count()
 {
     return $this->taskManager->count($this->filter);
 }