Given I have defined a new environment for which a counter is maintained:
\\newcounter{bioclipse}
\\newenvironment{bioclipse}[2][]{
\\begin{shaded}\\refst
Insert:
\def\thebioclipse{\thechapter-\arabic{bioclipse}}
and get
\newcounter{bioclipse}
\def\thebioclipse{\thechapter-\arabic{bioclipse}}
\newenvironment{bioclipse}[2][]{
\begin{shaded}\refstepcounter{bioclipse}\par\medskip\noindent%
\textbf{Bioclipse Excursion~\thebioclipse #1: #2
\vspace{0.1cm} \hrule \vspace{0.1cm}}
\rmfamily}{\medskip \end{shaded}
}