Hack for Elasticsearch bug with count queries that was fixed in latest version of Elasticsearch 1.0.1