I need to re-use a table or image number multiple times, once in the introductory text, once under the table/image as a caption, and maybe another time as a link to it.
But every time I use :counter:`table` the counter increases by 1.
How can I freeze the counter for as long as I need to use the same one? In this case at least 2 times. Or maybe: How can I get the last counter number?