'Execute a query against one or more indices and get hits count.'

def count(self, query=None, indices=None, doc_types=None, **query_params):

    from .query import MatchAllQuery
    if (query is None):
        query = MatchAllQuery()
    body = {'query': query.serialize()}
    path = self._make_path(indices, doc_types, '_count')
    return self._send_request('GET', path, body, params=query_params)
