Dynamic display of item numbers of a collection in a page

I would like to display the total number of item inside a collection in a page.

Something like:

This Omeka S website presents 3456 items in collection A and 654 in collections B. They are very interesting.

And I would like these numbers to change according to the deletion or addition of items. The page is created with Omeka S built in page system and the text which contains this number is a simple html block.

Is such thing possible with Omeka S?

It was possible in Omeka Classic with shortcodes. So you can either reimplement them, build a block or a view helper or include it directly in the themeā€¦