public function count() { if ($this->_rows) { return count($this->_rows); } $this->readRows(); return count($this->_rows); }