public function count()
    {
        if ($this->counterOwner instanceof ParamsHolder) {
            return $this->counterOwner->params[$this->counterParam];
        } else {
            return ArrayHelper::getValue($this->counterOwner, $this->counterParam, 0);
        }
    }