Added functionality to specify the number of documents per odp_category