How many foot pedals does an automatic car have?

Usually two, gas and brake.

There may also be an emergency brake pedal (usually far away from the other pedals, right up against the side wall) and in older cars there's often ... well, "pedal" is generous, but there may be a step switch for turning on and off the high beams on the headlights. If so, the switch will usually be in the "corner" of the driver's foot area as far from the center of the car as it's possible to get.