Valence Electrons in Bond Formation: Achieving the Octet Rule
Two.
When two atoms share electrons to form a bond, each atom contributes one valence electron to the bond. This results in a total of two valence electrons being shared between the two atoms, which is enough to fill an octet for each atom.