I see I answered the same question on StackOverflow.
Please let me know if it is sufficient.
https://stackoverflow.com/questions/63323673/page-number-in-asp-net-core-footer-partial-view/63336052#63336052