title: query on result aggregation elasticsearch
body: <p>I had imported millions data into elasticsearch. Mapping is following:</p>
  
  <p>"_source": {
              "mt": "w",
              "hour": 1
             }</p>
  
  <p>i want to find number of hour's that have occured more than 5.</p>
  
  <p>for exmple:
  using terms aggregation i get following result :</p>
  
  <p>"aggregations": {</p>
  
  <pre><code>    "hours": {
  
          "doc_count_error_upper_bound": 0,
          "sum_other_doc_count": 0,
          "buckets": [
              {
                  "key": 1,
                  "doc_count": 7
              },
              {
                  "key": 4,
                  "doc_count": 5
              },
              {
                  "key": 5,
                  "doc_count": 2
              }
          ]
      }
  }
  </code></pre>
  
  <p>How do i find count of hour's that occure more than 5.
  in here it be 1 because only hour=1 is more than 5 </p>