The solution for including multiple pdf pages in your main document discussed at https://tex.stackexchange.com/a/125212/41856 works for me, however, the code listed there, and below, will not reference test.pdf as a figure in the main text as Figure (1) below, but by Figure (22), or however many pages are in test.pdf
\getpdfpages{test.pdf}
\foreach \x in {1,...,\value{pdfpages}} {
% your code for page \x of t.pdf goes here
\begin{table}[htpb] \caption{Figure 1} \label{fig:Figure 1}
\centering
\includegraphics[page=\x,width=1\textwidth]{test.pdf}
\end{table} }
\clearpage
(\ref{fig:Figure 1})
The prior \ref commands yields Figure (22), or however many pages are in test.pdf, in the main document when I would like it to be Figure (1).
How can the above code be modified to increment each \ref in the document by 1 and not the number of pages in test.pdf?
This is even more important when you are including more documents, example test1.pdf, test2.pdf, et cetera in the main text.

Figure 1in the caption withFigure \xand similarly in the label. – egreg Nov 28 '13 at 15:33