public function selectorCount() { if ($this->isReference() && $this->getProject() !== null) { try { return $this->getRef($this->getProject())->selectorCount(); } catch (Exception $e) { throw $e; } } return count($this->selectors); }