public function count()
    {
        $oldFields = $this->fields;
        $this->fields = 'COUNT(*) as number';
        $number = $this->get();
        $number = $number[0]['number'];
        $this->fields = $oldFields;
        return $number;
    }