added elasticsearch count api
Merge pull request #21 from piccoloaiutante/master

added elasticsearch count api