Charge Counter for Performing Active Charge-Balance in Miniaturized Electrical Stimulators