\usepackage{amsthm}

\newtheorem{thm}{Theorem}

\begin{thm}
Herding cats is hard.
\end{thm}

\begin{thm}
Herding dogs is hard too.
\end{thm}

Reference