My goal is to achieve n of m type page numbering if the document has more than 1 page and no page numbers otherwise. I have no problem putting n of m page numbers thanks to How can I add "page # of ##" on my document?. My plan was to use the totcount package to test the total number of pages. The problem is that the lastpage package screws up the total count. Specifically, the resulting 1 page document of the following MWE:
\documentclass{article}
\usepackage{lastpage}
\usepackage{totcount}
\regtotcounter{page}
\begin{document}
totcount: \total{page}
lastpage: \pageref{LastPage}
\end{document}
has \total{page} equal to 2 while \pageref{LastPage} is equal to 1.
Any ideas what is going on?

totcountwithpage, otherwise there would be no need for packages likelastpage. Thank you for seeing around my question and realizing that my problem was accessing the reference value. – StrongBad Nov 04 '13 at 08:32