When I insert a page count field before any of the endnote markers, the field shows wrong number of pages (it simply ignores pages used for endnotes, so instead of 15 you will have, for example, 14). Is there any workaround for this bug?
(Here is a detailed explanation: https://bugs.documentfoundation.org/show_bug.cgi?id=144599)