I'm still pretty new to ES, but if I get you right, it seems like you should get an answer by simply counting the number of buckets returned in response? (see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html )
NOTE though: contrary to what this document says right now with a size of 0 ("You can not limit the number of terms returned by setting the size to 0."), my testing with the latest version (1.0.1 now) shows that this does not work ! Conversely, setting the size to 0 will give you 0 buckets !!! You should set (sigh) the size to some arbitrary high rate, and now if you want to get all the conditions.
EDIT : screaming, my bad! I just re-read the document again and just noticed that there is a version there, and realized that this only comes out in 1.1.0? This note is in the past tense ("Added in 1.1.0."), Which is confusing, but I think 1.1.0 has not yet been released ....
Oh, and by the way, there seems to be something wrong with your url? I hope you know that.
source share