When an object absorbs visible light (such as from the sun) it gains a certain amount of energy. Most objects then emit back IR radiation (without emitting back any visible light) which has a lower frequency and therefore less energy than visible light.
So how has energy been conserved here? Does the object maybe emit more total photons of IR radiation than it absorbed photons of visible light, since each photon of IR radiation carries less joules of energy? Or, if not, does the object actually gain in internal energy through this process?