How can I fix page count error in Writer documents?

The number of pages in a writer document showing in the bottom bar is incorrect, a three page document is showing only 1 page although the page count is correct in navigator. Most other documents show the correct number of pages.
Any suggestions?

Disable OpenGL as the workaround.

Worked for me too, is this then an OpenGL bug or a LibreOffice one? I’ve been plagued with that incorrect page count for months.

@dbarron: have you tried to click at the link? the bug report is all there; and also the information that it has been fixed for 6.0.6.