Make the total number of items available in the listing template (see #6111)