At the beginning of my document, I need to list the total number of pages in the document. I've got a system that works most of the time (see below), but if the document only has one page, then my document reads "1 pages," which is unfortunate. Is there anyway to have it correct read "1 page" if there is one page, and "n pages" if there are n > 1 pages? My document needs to compile using pdflatex.
\documentclass{article}
\usepackage{lipsum}
\usepackage{lastpage}
\begin{document}
\pageref{LastPage} pages
\lipsum[1-2]
\end{document}