add count to elastic search.