added min_doc_count to HistogramAgg and DateHistogramAgg