source/Application/Model/Search.php
public function getSearchArticleCount($sSearchParamForQuery = false, $sInitialSearchCat = false, $sInitialSearchVendor = false, $sInitialSearchManufacturer = false)
    {
        $iCnt = 0;
        $sSelect = $this->_getSearchSelect($sSearchParamForQuery, $sInitialSearchCat, $sInitialSearchVendor, $sInitialSearchManufacturer, false);
        if ($sSelect) {
            $sPartial = substr($sSelect, strpos($sSelect, ' from '));
            $sSelect = "select count( " . getViewName('oxarticles', $this->_iLanguage) . ".oxid ) $sPartial ";

            $iCnt = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getOne($sSelect);
        }

        return $iCnt;
    }
public function getSearchArticleCount($sSearchParamForQuery = false, $sInitialSearchCat = false, $sInitialSearchVendor = false, $sInitialSearchManufacturer = false)
    {
        $iCnt = 0;
        $sSelect = $this->_getSearchSelect($sSearchParamForQuery, $sInitialSearchCat, $sInitialSearchVendor, $sInitialSearchManufacturer, false);
        if ($sSelect) {
            $sPartial = substr($sSelect, strpos($sSelect, ' from '));
            $sSelect = "select count( " . getViewName('oxarticles', $this->_iLanguage) . ".oxid ) $sPartial ";

            $iCnt = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getOne($sSelect);
        }

        return $iCnt;
    }
public function getSearchArticleCount ( $ sSearchParamForQuery = false , $ sInitialSearchCat = false , $ sInitialSearchVendor = false , $ sInitialSearchManufacturer = false ) { $ iCnt = 0 ; $ sSelect = $ this -> _getSearchSelect ( $ sSearchParamForQuery , $ sInitialSearchCat , $ sInitialSearchVendor , $ sInitialSearchManufacturer , false ) ; if ( $ sSelect ) { $ sPartial = substr ( $ sSelect , strpos ( $ sSelect , ' from ' ) ) ; $ sSelect = "select count( " . getViewName ( 'oxarticles' , $ this -> _iLanguage ) . ".oxid ) $sPartial " ; $ iCnt = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> getOne ( $ sSelect ) ; } return $ iCnt ; }
Returns the amount of articles according to search parameters.

@param string $sSearchParamForQuery       query parameter
@param string $sInitialSearchCat          initial category to seearch in
@param string $sInitialSearchVendor       initial vendor to seearch for
@param string $sInitialSearchManufacturer initial Manufacturer to seearch for

@return int
Returns the amount of articles according to search parameters .