This is split from bug 167526. Open attachment 201488 [details]. There is no number 2 for the empty paragraph between the first and second tables. Removing the first table (put cursor somewhere inside it, Table->Delete->Table) makes the number appear. The problem is, that the empty paragraph line is considered a "dummy" (used for fly); it is decided in SwLineLayout::CalcLine, and checked in SwTextFrame::PaintExtraData.
https://gerrit.libreoffice.org/c/core/+/188016
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/5355b3ec3925ddd146a6e3dd6ba28a816b39c66c tdf#167538, tdf#167540: better check if the line is dummy It will be available in 26.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.