power_supply: add CHARGE_COUNTER property and olpc_battery support for it