With the counters function. We saw this in the section on content above, but let's revisit it. It returns every counter in the document relevant at the point it is called, separated by the string you give, in the style specified. Basically, a counter is relevant inside any of the children of the element which created it. Possible Values counter-reset takes the name of the counter to reset.
Counter names are identifiers, and comprise letters, numerals and hyphens.
They cannot begin with numerals or hyphens. It also takes an optional integer, to which it sets the value of the identified counter. This is no mere luxury. Because of cascading, the following will set only the counter named counter2. In order to reset both, the following must be used.