yii\data\DataProviderInterface::getCount PHP Method

getCount() public method

This is equivalent to count($provider->getModels()). When [[getPagination|pagination]] is false, this is the same as [[getTotalCount|totalCount]].
public getCount ( ) : integer
return integer the number of data models in the current page.
    public function getCount();