While you can get away with them on the counter for a day or so, I find that refrigerating the cupcakes extends the shelf life for a few days. Then, if you want a room-temperature cupcake, just let it sit out for about 30 minutes before eating.