How long can stew sit out on the counter while cooling off in a cool house for 5 hours?

It is not recommended to let stew sit out on the counter while cooling for more than 2 hours at room temperature. After that, the stew should be refrigerated or placed in an ice bath to stop the growth of bacteria.