How do I obtain the distribution of fields among a MongoDB collection, i.e the total count of documents for each field ?
E.g. considering these documents :