getting number of results returned including those not shown in that page

I am using the below code and would like to know how I can get number of results returned including those not shown in that page due to pagination





<h1>

<?php  where I want the now of results returned to show  ?>

</h1>


<?php 

 $this->widget('zii.widgets.CListView', array(

'dataProvider'=>$dataProvider,

'itemView'=>'_results',

'enablePagination'=>true,




)); 





?>

do dump to $dataProvider you will see what is inside, or read the documentation for the provider type.

Or count total items of your dataProvider and pass the value by the controller.

use $dataProvider->totalItemCount to return total results.