To attain a noble gas electron configuration, sulfur needs to gain 2 electrons. Sulfur's atomic number is 16, which means it has 16 electrons. The nearest noble gas to sulfur is argon, which has 18 electrons. Therefore, sulfur needs to gain 2 electrons to attain a stable, argon-like electron configuration.