Including the total number of pages
From Apache OpenOffice Wiki
To include the total number of pages (as in page 1 of 12):
- Type the word page and a space; then insert the page number as above.
- Press the spacebar once, type the word of and add a space; then choose Insert > Fields > Page Count.