public function count()
    {
        $countItems = $this->countItems() - $this->getItemOffset();
        if ($countItems >= $this->getItemCount()) {
            $countItems = $this->getItemCount();
        }
        return $countItems;
    }
public function count()
    {
        $countItems = $this->countItems() - $this->getItemOffset();
        if ($countItems >= $this->getItemCount()) {
            $countItems = $this->getItemCount();
        }
        return $countItems;
    }
public function count ( ) { $ countItems = $ this -> countItems ( ) - $ this -> getItemOffset ( ) ; if ( $ countItems >= $ this -> getItemCount ( ) ) { $ countItems = $ this -> getItemCount ( ) ; } return $ countItems ; }
return the number of items in the subset

@return    int            number of items
return the number of items in the subset