export itemsPerPage and totalItems to a template of the paginator