public function count($index, $type) { return $this->_request($this->_path($index, $type, '_count'), 'GET', '{ matchAll:{} }'); }