In my document, I use this script:
%the template
\documentclass{llncs}
\usepackage{blindtext}
\usepackage{xpatch}
%for foot page numdering
\usepackage{fancyhdr}
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
\cfoot{\number\value{page} of \pageref{LastPage}}
\pagestyle{fancy}
\xpatchcmd{\maketitle}{\thispagestyle{empty}}{}{}{}
%end page numbering
\begin{document}
%\includepdf[pages={17-23}]{master_paper.pdf}
\title{Document Title}
\author{Name Here}
%\\Supervised by: Prof. Cas Cremers
\institute{Institution)\\
\email{zz@yy.com}}
\maketitle
\begin{abstract}
Abstract goes here..
\end{abstract}
\section Section Here
\end{document}
The problem is that, when I view the document in PDF format, at the buttom of the page, the page numdering does not appear properly. It appears as: 1 of ?? i.e. it does not show the total number of pages as supposed.

\usepackage{lastpage}into your preamble ... – Zarko Dec 31 '16 at 22:36