Counting pages in Writer documents is often slow and users are confused by the running counter in the status bar. It could potentially be made faster in some cases by looking at the last page breaks found in the document markup. Originally from bug 167823 comment 4.
FTR: last rendered page breaks are represented by text:soft-page-break elements, when office:text element has text:use-soft-page-breaks="true" attribute.