MongoDB aggregation and query to retrieve max date and total counter.