We had a test and and we had a question asking the number of valence electrons in an azide ion, $\ce{N3^{-}}$. I find out that the answer is 16 but I could not understand how. I saw the structure. It says that the end nitrogen have a -1 charge and the middle nitrogen has a +1 charge.
From where does the one of the end nitrogen get the electron assuming the other end nitrogen gets it from the middle nitrogen?