I am using the significant terms aggregation, which gives me n significant terms with their doc_count and bg_count using the following query:
{ "query"