MDL-64477 analytics: Introduce a new \core_analytics\stats class