The Rams visited division rival San Francisco 49ers on September 17 for their home opener. The 49ers increased their winning streak against the Rams to three, beating the Rams 20-13. With 11:10 left in the first quarter, Alex Smith completed a 56-yard pass to Arnaz Battle, setting up a 32-yard field goal by Joe Nedney. At the beginning of the second quarter, Corey Chavous recovered a Frank Gore fumble at the Rams 3-yard line. The Rams moved the ball sixty yards down the field setting up a 49-yard Jeff Wilkins field goal. The Rams scored their first touchdown of the season with a 3-yard pass from Marc Bulger to Torry Holt with 2:21 left in the half, giving the Rams a 10-3 lead going into the half. With 14:12 left in the third quarter, the 49ers tied the game at ten with a Gore 32-yard touchdown run. The 49ers took the lead at 10:54 in the third quarter with a 72-yard pass from Smith to Antonio Bryant. Each team had a field goal in the fourth quarter. Wilkins hit a 40-yard field goal with 11:06 in the fourth, and Nedney had a 20-yard field goal with 5:23 in the fourth. Bulger was sacked six times in the game and completed 19 of 34 attempts for 147 yards. Steven Jackson had 103 yards on the ground on 22 carries, along with 2 receptions for 21 yards. Will Witherspoon also had a good game making 13 tackles and forcing one fumble. The Rams had 118 total yards during the second half. Left tackle Orlando Pace left the game at the half with a concussion. He was taken to a hospital in the bay area where a CAT scan turned up negative. Linebacker Pisa Tinoisamoa dislocated his elbow in the third quarter, and missed the rest of the game.  With the loss, the Rams fell to 1-1.
Question: How many field goals were kicked in the game?
Answer: 4