Nitrogen (N) has more valence electrons than boron (B).
Boron, with atomic number 5, has an electron configuration of 1s2 2s2 2p1. Its valence electron is in the 2p orbital, making boron's valence electron count equal to 1.
Nitrogen, on the other hand, has atomic number 7 and an electron configuration of 1s2 2s2 2p3. Nitrogen has three valence electrons, which are present in the 2p orbital.
The valence electrons of an element are the electrons in the outermost energy level (shell). In the case of both boron and nitrogen, their outermost energy level is the 2nd energy level (n=2). However, nitrogen has three valence electrons in the 2p orbital, while boron has only one valence electron in the 2p orbital.
Therefore, nitrogen has more valence electrons (three) compared to boron (one).