Automotive current sensing and coulomb counting