Is it safe to eat leftover food that was left out on the counter to cool, then forgotten for a few hours?

No, if food has been left in temperatures over 40° F for more than 2 hours, it should be discarded. Pathogenic bacteria will not usually affect the taste, smell, or appearance of a food.