coulomb counting

Keep in mind there is something called ENOB - Effective Number Of Bits.

http://www.analog.com/static/imported-files/tutorials/MT-003.pdf