Re-implemented the date_stats collector.