Numbered Pagination

We would like to be able to change the pagination on our site to be numbered (1, 2, 3 …. 8, 9, 10 etc) instead of the default “« Next” and “Previous »”

Is this possible and, if so, how would we modify the code to implement the customization?