src/FixedSizeCollection.php
public function getCollectionSize()
    {
        $size = 0;
        foreach ($this->pageList as $page) {
            $size += $page->getPageElementCount();
        }
        return $size;
    }
public function getCollectionSize()
    {
        $size = 0;
        foreach ($this->pageList as $page) {
            $size += $page->getPageElementCount();
        }
        return $size;
    }
public function getCollectionSize ( ) { $ size = 0 ; foreach ( $ this -> pageList as $ page ) { $ size += $ page -> getPageElementCount ( ) ; } return $ size ; }
Returns the number of elements in the collection. This will be
equal to the collectionSize parameter used at construction
unless there are no elements remaining to be retrieved.

@return int
Returns the number of elements in the collection . This will be equal to the collectionSize parameter used at construction unless there are no elements remaining to be retrieved .