Identify and track the charge and discharge cycles of a battery over time automatically.