Counters get incremented twice when in a fold and exported to html.

\(\circ\)2

\(\circ\)Theorem 2. theorem 1

\(\circ\)

Problem 2. test 1

\(\circ\)

Problem 4. test