Calculate total number of electrons from density of states? [closed]

Can someone tell me how to calculate the total number of electrons from partial density of states (projected on each atom)?

Thanks

closed as off-topic by AccidentalFourierTransform, Jon Custer, M. Enns, ZeroTheHero, Bill NAug 17 '17 at 2:07

• This question does not appear to be about physics within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

The number of electrons is the integral of the density of states up to the Fermi energy. That is because at $T=0$ all states up to the Fermi energy are filled, all above are empty.
Since the total DoS is just the sum of the partial DoS, you can add up all your partial DoS and integrate from $-\infty$ to the Fermi energy.