how are the # of electrons in each shell determined
Electron shell
The electrons in the outermost occupied shell (or shells) determine the chemical properties of the atom; it is called the valence shell.