MILWAUKEE -

Matt Carpenter hit an RBI single with two outs in the eighth inning, putting the St. Louis Cardinals  ahead during a four-run rally Monday night in an 8-5 win over the Milwaukee Brewers at Miller Park.

The Cardinals got seven of their 16 hits in the big inning, capped by pinch-hitter David Freese's two-run double. St. Louis won for the ninth time in 11 games.

Carlos Beltran and Jon Jay homered for St. Louis and Yadier Molina had four hits.

The Brewers' Aramis Ramirez snapped a 1-for-18 skid since returning from the disabled list Aug. 13 with a two-run homer off Michael Wacha (2-0) in the seventh to give the Brewers a 5-4 lead.

It didn't last long.

The Cardinals erupted in the eighth off reliever Brandon Kintzler (3-1), who gave up four runs and six hits while getting just two outs.

Edward Mujica, who was unavailable during the weekend series at Wrigley Field because of a tired arm, pitched the ninth for his 32nd save in 34 chances.

GAME NOTES:

Brewers CF Carlos Gomez remained out of the starting lineup Monday after spraining his right knee on Thursday night. Manager Ron Roenicke said he could play during the Cardinals series. ... Brewers 1B Juan Francisco struck out four times for the second consecutive game.