/** * {@inheritdoc} */ public function count() { return intval(ceil($this->cursor->count() / $this->pageSize)); }