\newcounter{name}[counter]
The \newcounter command defines a new counter named name. The optional argument [counter] causes the counter name to be reset whenever the counter named in the optional argument is incremented.