Pagination Items Calculation Question

Hi,
Is it possible to made autocalculated info about current items on page?

Something like this:
Showing 1-15 of 94

How to count i’m unterstand, but how to calculate
1-15
15-30
30-45 etc…
?

UPD:

Showing <?= $pagination->start() ?>-<?= $pagination->end() ?>  of <?= $pagination->total()  ?>
1 Like