Question: how many valence electrons ni?
Answer: Outermost shell of Ni is 4th shell i.e N shell. It contains 2 electrons. Therefore Ni has 2 valence electrons.