Renumbering figure in LaTeX?

Next to reseting the counter for the figures:

\setcounter{figure}{0}

You can also add the "S" by using:

\makeatletter 
\renewcommand{\thefigure}{S\@arabic\c@figure}
\makeatother

you can reset the figure counter with

\setcounter{figure}{0}