public function count()
    {
        // get database connection
        $db = $this->getDBConnection("READ");
        if ($this->_fetch4countQuery) {
            $querySQL = $this->_fetch4countQuery;
        } else {
            $querySQL = $this->getSQLHelper()->buildQuerySQL($this);
        }
        $this->_fetch4countQuery = null;
        return $this->_getNumberRecords($db, $querySQL);
    }
public function count()
    {
        // get database connection
        $db = $this->getDBConnection("READ");
        if ($this->_fetch4countQuery) {
            $querySQL = $this->_fetch4countQuery;
        } else {
            $querySQL = $this->getSQLHelper()->buildQuerySQL($this);
        }
        $this->_fetch4countQuery = null;
        return $this->_getNumberRecords($db, $querySQL);
    }
public function count ( ) { // get database connection $ db = $ this -> getDBConnection ( "READ" ) ; if ( $ this -> _fetch4countQuery ) { $ querySQL = $ this -> _fetch4countQuery ; } else { $ querySQL = $ this -> getSQLHelper ( ) -> buildQuerySQL ( $ this ) ; } $ this -> _fetch4countQuery = null ; return $ this -> _getNumberRecords ( $ db , $ querySQL ) ; }
Count the number of record according to the search results set before.
It ignores limit setting

@return int number of records
Count the number of record according to the search results set before . It ignores limit setting