The Open Office Suite got an excellent help feature - press F1 and type "page numbers" and voilà!. You can insert the current page number anywhere you like (Insert > Fields > Page Number). If you insert it in a header (Format > Page ... > Header > Header On) or footer (Format > Page ... > Footer > Footer On) it will be repeated on every page.