Changes to get count and terms queries working with es_support branch.
Changes to get count and terms queries working with es_support branch.

jetyang2005/elastalert,rprabhat/elastalert,jetyang2005/elastalert,jetyang2005/elastalert,Yelp/elastalert