Trying to snap a five-game losing streak, the Cardinals went home, donned their alternate uniforms again, and played a Week 12 NFC West duel with the San Francisco 49ers on Monday night.  Arizona trailed early in the first quarter as 49ers quarterback Troy Smith completed a 38-yard touchdown pass to wide receiver Michael Crabtree.  The Cardinals answered with a 31-yard field goal from kicker Jay Feely, but San Francisco struck back with running back Anthony Dixon getting a 1-yard touchdown run.  The 49ers added onto their lead in the second quarter with running back Brian Westbrook getting an 8-yard touchdown run.  Arizona would respond with Feely's 39-yard field goal.  From there, San Francisco pulled away in the third quarter as 49ers kicker Shane Andrus made a 38-yard field goal, followed by his 26-yard field goal in the fourth quarter.
Question: How many touchdowns did the 49ers score?
Answer: 3