PITTSBURGH (AP) Kolten Wong hit the second leadoff home run of his career, Tyler O'Neill added a two-run shot and the St. Louis Cardinals held off the Pittsburgh Pirates 6-5 in Game 1 of a doubleheader on Friday.

Ryan Helsley recorded the final two outs for his first career save, and it didn't come easily.

With two outs and no one on, umpires were forced to review the pitch sequence to Kevin Newman after plate ump Jordan Baker apparently lost track of the count.

''I'm pretty sure they got mixed up and they didn't know if there was one ball or one strike,'' Helsley said. ''I guess I walked him. I thought it was 3-2, too, but got caught up in the game.''

Newman walked and Erik Gonzalez reached on shortstop Paul DeJong's second throwing error. Helsley walked pinch-hitter Josh Bell to load the bases but retired John Ryan Murphy on a flyball to end it following a brief pep talk from catcher Yadier Molina.

''Yadi came out and was like, `Just attack this guy and put our best foot forward,''' Helsley said. ''And that's what we did.''

After scratching out all of four hits in their previous 18 innings combined, the Cardinals managed eight in seven innings against Trevor Williams (1-8) and three relievers to overcome some sloppy defense.

St. Louis committed four errors, including a catcher's interference call against nine-time Gold Glover winner Molina that forced home Adam Frazier in the first.

Molina has been called for catcher's interference twice in four days - prior to that, the 17-year veteran had been flagged just twice in his career.

Playing their third doubleheader in five days, the Cardinals needed a jolt as they try to stay in the mix for a playoff berth. Wong provided an early one by turning on an 0-2 pitch from Williams and sending it just over the 21-foot high Clemente Wall in right field to extend his hitting streak to 10 games.

St. Louis built a 6-2 lead through 3 1/2 innings then held on. A pair of errors in the fourth chased starter Carlos Martinez and allowed Pittsburgh creep within a run. Yet the Pirates lost for the ninth time in 10 games when they failed to take advantage of a two-on, one-out opportunity in the fifth and a one-on, one-out chance in the sixth.

Al Reyes (2-1) picked up the victory in relief of Martinez.

Martinez remained winless on the season but managed to survive an early meltdown after walking the bases full to start the bottom of the first.

The Pirates managed two runs in the inning without the benefit of a hit, one of them coming when the team asked for a replay on what appeared to be a swinging third strike against Bryan Reynolds. Reynolds chatted with Baker before walking to the bench and video review showed Molina's glove got in the way of Reynolds' swing, forcing in a run.

Martinez steadied himself after before his defense let him down in the fourth behind an error by DeJong and right fielder Tommy Edman that allowed the Pirates to pull within a run.

Williams saw his ERA rise to 6.70 after allowing six runs (five earned) in 4 1/3 innings. Williams is 1-11 in his last 12 decisions dating back to September 2019. The 28-year-old's future is uncertain with a team that is in the midst of a massive remodel. He called the last few months a ''mental grind'' while being away from his wife, Jackie, and their three young children.

''It's been hard for me to keep up and stay up,'' said Williams, who is scheduled to make one more start for the last-place Pirates. ''I know as soon as I get home, I'll have a jolt of energy and see four or five days without baseball and it's going to be you know, chomping at the bit to get out there, reprove myself and show people what I have.''

Murphy had two of Pittsburgh's four hits. Rookie third baseman Ke'Bryan Hayes drove in two runs but the Pirates went 1 for 9 with runners in scoring position and left 10 men on base.

TRAINER'S ROOM

Cardinals: Placed RHP Dakota Hudson on the 10-day injured list with a strained right forearm. Hudson left his start on Thursday night after two innings due to what he described as discomfort in his right arm. He went 3-2 with a 2.77 ERA in eight starts. St. Louis added RH reliever Nabil Crismatt to take Hudson's roster spot.

UP NEXT

St. Louis will send out Daniel Ponce de Leon (0-3, 6.23 ERA) for Game 2. Ponce de Leon is winless in 18 career starts. Chad Kuhl (1-2, 5.50) takes the ball for the Pirates. Kuhl was tagged for nine runs in 2 1/3 innings in his last start against Kansas City.

---

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports

Copyright 2020 STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.