title: Count of all the results from terms aggregation bucket
body: <pre><code>GET /test*/_search
  {
    "size": 0,
    "query": {
      "match_all": {}
    },
    "aggs": {
      "test": {
        "terms": {
          "field": "name.keyword",
          "min_doc_count": 10
        }
      }
    }
  }
  </code></pre>
  
  <p>the above query will return all the unique names which occurs more than 10 times.
  I want the query to return the count of those unique names with occurrance more than 10 times.</p>
  
  <p>I could not find a way to do find out the count. Can anybody help with it.</p>
  
  <p>Thanks.</p>