I would like to get the page count in my LaTeX document such that I do not need to do manaually do it. Pseudocode
\documentclass{article}
\usepackage{hyperref}
\begin{document}
Page count: % TODO here
\end{document}
Doing the thing with \usepackage{lastpage} ... \ref{LastPage} puts a hyperlink (blue) there, output in Fig. 1.
I want it without the hyperlink and in black.
Fig. 1

\usepackage{lastpage}and then in the document body:Page count: \pageref{Lastpage}– Mar 03 '17 at 06:07\pageref*{LastPage}– Mar 03 '17 at 06:15