The electron count doesn't matter just that it's a full shell?
Generally, the key is a full shell. It's not that the electron count is not important, it's that the electron count will correspond to a full shell, and the electron count of a full shell is not always 8 - it could be 2, 8, 18 or 32.
Be aware, this simplified picture does not hold for the transition metals and the heavier elements.