added support for updateCounters to elasticsearch

issue #1313