The total number of electrons represented in a Lewis structure is equal to the sum of the numbers of valence electrons on each individual atom. (Non-valence electrons are not represented in Lewis Structures)
So for NO2, we have 1 N and 2 O. Nitrogen has a valence of 5, oxygen a valence of 6.
N=5
O=6
5 + 6(2) = 17 electrons
*Since there are 17, there will be a free radical - I believe on the Nitrogen atom.