Electrons behave as standing (stationary) waves in an atom, and there are different sizes and shapes of standing wave possible around the nucleus, known as orbitals
Determining the number of electron pairs surrounding a central atom
Take the total number of valence electrons, add one for each atom attached, add an electron for every negative charge, remove an electron for every positive charge, divide by two