public static function get_recent_sitemap_url_counts($n = 7) { $stats = array(); for ($i = 0; $i < $n; $i++) { $date = date('Y-m-d', strtotime("-{$i} days")); list($year, $month, $day) = explode('-', $date); $stats[$date] = self::get_indexed_url_count($year, $month, $day); } return $stats; }