Rules for counting the numbers of electrons that give rise to stable structures in atoms, molecules, and solids. For example, the result that the number of electrons in a full electronic shell in an atom is 2n2, where n is the principal quantum number associated with the shell, is an example of an electron counting rule. Various rules exist for predicting stable structures in chemical compounds, especially in certain types of cluster compound.