\documentstyle[12pt]{article}
\begin{document}
\setcounter{section}{0}
\setcounter{subsection}{0}
\setcounter{subsubsection}{0}
\section{Related work}
\subsection{What Jill did}
\subsubsection*{Why she did it}
\subsubsection{What next?}
\subsection{What Bob failed to do}
\subsubsection*{Why he didn't}
\subsubsection*{Should he have?}
\end{document}
Note that on three of the divisions, the numbering has been suspended. If you look at the dvi output, you'll notice that numbering continues correctly even if surrounding a division with numbering suspended.