added elasticsearch count api

added {role: 'search, cmd: 'count'} so that we can use native count api from elastic search