/** * 统计数量 * * @param string $query * @return string */ public function count($query) { $query = $this->toArray($query); return $this->result($this->_model->count($query)); }