public function countBy(array $criteria = array()) { return $this->getRepository()->findByCount($criteria); }