Using the Liferay package for Wildfly 10 environment.
Documents and Media display:
If a folder contains folders, subfolders, and files, the count is misleading and the page navigation may be incorrect.
For example, if a folder contains 15 files, 3 directories with 9 subdirectories, the page will display 18 entries.
At the bottom, it will display
20 Entries Showing 1 to 20 of 27
Even though only 18 actual entries are available. In addition, attempting to go to Page 2 will show an empty screen.