Is there any way to count how many pages there is in pagination? I'm not talking about Collection count, but something like pagination count maybe?
A pagination is linked to a collection. To get the total number of pages use this:
If you have a pagination block in your page you can get the last page number like this: