I have:
\usepackage{amsthm}
\newtheorem{problem}{Problem}
....
\begin{problem}...\end{problem}...
...
\begin{problem}...\end{problem}...
In the first page of the document, how can I know the number of the problem environments used in the document? That is, I want to know the value of the last problem counter.
\value{problem}or maybe\the\value{problem}depending on where you want to use it. – Seamus Mar 13 '12 at 16:30\the\value{problem}return0at the beginning of the document no matter the number ofproblems? – yo' Mar 13 '12 at 16:42