Pimcore\Model\Object\Listing\Dao::getCount PHP Method

getCount() public method

public getCount ( ) : integer
return integer
    public function getCount()
    {
        if (count($this->model->getObjects()) == 0) {
            $this->load();
        }
        return count($this->model->getObjects());
    }