public function count()
    {
        $oldFields = $this->fields;
        $this->fields = 'COUNT(*) as number';
        $number = $this->get();
        $number = $number[0]['number'];
        $this->fields = $oldFields;
        return $number;
    }
public function count()
    {
        $oldFields = $this->fields;
        $this->fields = 'COUNT(*) as number';
        $number = $this->get();
        $number = $number[0]['number'];
        $this->fields = $oldFields;
        return $number;
    }
public function count ( ) { $ oldFields = $ this -> fields ; $ this -> fields = 'COUNT(*) as number' ; $ number = $ this -> get ( ) ; $ number = $ number [ 0 ] [ 'number' ] ; $ this -> fields = $ oldFields ; return $ number ; }
Return number of rows for current options.
@return int
Return number of rows for current options .