Usually, if the reference is a journal paper, the page number information is the starting and ending page numbers of the journal where the reference is located, which is the total page number you said. It is not necessary to be accurate to the page number of a specific reference.
If the reference is a book or monograph, the page number information of the reference is the page where the specific quoted content is located.