I wish to number my theorems within subsections as
Theorem 1
Theorem 2
Theorem 3
...
And only reset it back to 1 when I have a new subsection.
So I have a subsection within a section, and within the subsection I have several theorems, which are normally numbered section.subsection.theoremnumber. But I want it just to be Theorem 1, Theorem 2, Theorem 3, etc until the end of the subsection, and in the next subsection, reset it back to Theorem 1, Theorem 2, etc.
How can I do this?

amsthmorntheorem. Separately, should the change in numbering system apply only totheoremenvironments, or should it apply to other, theorem-like environments, e.g.,proposition,lemma,corollary, etc.? – Mico Jan 09 '17 at 03:59\newtheorem{thm}{Theorem}[subsection]. – Mico Jan 09 '17 at 04:48