CSS counter-reset
The counter-reset CSS property creates or resets one or more counters. A counter is a self-incrementing number which can be used to label items or generate automatic numbering.
Here's how you can use the counter-reset property in your CSS:
In this example, we have a .example class which resets the counter named section to 0. We then increment the counter for each instance of the .example class and display the value before the content of each element.
For more complex examples and usage of counter-reset, refer to the MDN documentation.