An improved micropower counting integrator