I have a problem and I hope someone here can help me

I dont know how to make a reference to an image I have aded inside a float box. I want to make it so that if I write "as you can see in image 3", the number changes if I add more pictures before. Can someone give me some pointers, please?
Thanks!