[TASK] Add hook to post-process countVersionsOfRecordsOnPage

Hook to post-process BackendUtility::countVersionsOfRecordsOnPage
result. BackendUtility::countVersionsOfRecordsOnPage is used to
visualize workspace states in e.g. the page tree.

Resolves: #61725
Releases: master
Change-Id: I195167ff7989fb9b4ceeb910e2091fad9c9f475c