func (s *CountService) Headers(headers http.Header) *CountService {
	s.headers = headers
	return s
}
Headers specifies the headers of the request.
package elastic
import (
	"context"
	"fmt"
	"net/http"
	"net/url"
	"strings"
	"github.com/olivere/elastic/v7/uritemplates"
)
type CountService struct {
	client *Client
	pretty     *bool        
	human      *bool        
	errorTrace *bool        
	filterPath []string     
	headers    http.Header  
	index                  []string
	typ                    []string
	allowNoIndices         *bool
	analyzeWildcard        *bool
	analyzer               string
	defaultOperator        string
	df                     string
	expandWildcards        string
	ignoreUnavailable      *bool
	lenient                *bool
	lowercaseExpandedTerms *bool
	minScore               interface{}
	preference             string
	q                      string
	query                  Query
	routing                string
	terminateAfter         *int
	bodyJson               interface{}
	bodyString             string
}
func NewCountService(client *Client) *CountService {
	return &CountService{
		client: client,
	}
}
func (s *CountService) Pretty(pretty bool) *CountService {
	s.pretty = &pretty
	return s
}
func (s *CountService) Human(human bool) *CountService {
	s.human = &human
	return s
}
func (s *CountService) ErrorTrace(errorTrace bool) *CountService {
	s.errorTrace = &errorTrace
	return s
}
func (s *CountService) FilterPath(filterPath ...string) *CountService {
	s.filterPath = filterPath
	return s
}
func (s *CountService) Header(name string, value string) *CountService {
	if s.headers == nil {
		s.headers = http.Header{}
	}
	s.headers.Add(name, value)
	return s
}