The rule: 1 square foot for every 150
Most building codes, including the International Residential Code (section R806.2), call for 1 square foot (144 square inches) of net free vent area for every 150 square feet of attic floor.
That drops to 1 for every 300 when the ventilation is balanced: 40–50% of it high in the attic, like gable vents near the peak (within 3 feet of the ridge), and the rest low at the soffits or eaves. Some cold climates also allow 1 per 300 with a vapor retarder on the warm side of the ceiling.
Your local building department has the final word, so check with them if you're not sure.