Adding support for Elasticsearch Count API