PHOENIX — Even with the homer heroics of sluggers like Aaron Judge and Albert Pujols, Major League Baseball wasn't able to coax fans to ballparks at pre-pandemic levels this season, though attendance did jump substantially from the COVID-19 affected campaign in 2021.

The 30 MLB teams drew nearly 64.6 million fans for the regular season that ended Wednesday, which is up from the 45.3 million who attended games in 2021, according to baseball-reference.com. This year's numbers are still down from the 68.5 million who attended games in 2019, which was the last season that wasn't affected by the pandemic.

The 111-win Los Angeles Dodgers led baseball with 3.86 million fans flocking to Dodger Stadium for an average of 47,672 per contest. The Oakland Athletics — who lost 102 games, play in an aging stadium and are the constant subject of relocation rumors — finished last, drawing just 787,902 fans for an average of less than 10,000 per game.

The St. Louis Cardinals finished second, drawing 3.32 million fans. They were followed by the Yankees (3.14 million), defending World Series champion Braves (3.13 million) and Padres (2.99 million).

The Toronto Blue Jays saw the biggest jump in attendance, rising from 805,901 fans to about 2.65 million. They were followed by the Cardinals, Yankees, Mariners, Dodgers, and Mets, which all drew more than a million fans more than in 2021.

Only the Rangers started the 2021 season at full capacity and all 30 teams weren’t at 100% until July. No fans were allowed to attend regular season games in 2020.

Overall MLB attendance had been declining slowly for years — even before the pandemic — after hitting its high mark of 79.4 million in 2007. This year's 64.6 million fans is the fewest in a non-COVID-19 season since the sport expanded to 30 teams in 1998.

The Cardinals drew 3.4 million fans in 2019 and 2.1 million in 2021.

The attendance news comes on the same day the Cardinals and Bally Sports Midwest announced that the team's local television ratings led all of Major League Baseball for the second year in a row and the fourth time in the past five seasons.