LaTeX Counters

Everything LaTeX numbers for you has a counter associated with it. The
name of the counter is the same as the name of the environment or
command that produces the number, except with no \. Below is a list
of the counters used LaTeX's standard document styles to control
numbering.

The \value command produces the value of the counter named in the
mandatory argument. It can be used where LaTeX expects an integer or
number, such as the second argument of a \setcounter or \addtocounter
command, or in