protected function count() { $res = $this->db->ArrayBuilder()->getValue($this->dbTable, "count(*)"); if (!$res) { return 0; } return $res; }