Alright, it's odd you got the single blink first. If you took that and the next two blinks it would be code 12, which is the one to indicate there are no current codes. I don't think that is the case here so bear with me.
Code 14 if that was it, is not specifically saying the temp sensor is the issue. It's definition is that the coolant temp reached 275 degrees for 2 seconds. Even as notoriously vague as the stock gauges are I'm going to guess the engine didn't overheat on you.
Let's assume the first blink was just the light coming on for bulb check and then you got two blinks, pause and two blinks for code 22. That code is for the TPS (throttle position sensor) voltage being below 0.2v for 2 seconds with the engine running. Now a TPS code could be a condition that could cause a rough idle and or poor or no transmission shifting. The issue could come down to a wiring issue, TPS adjustment, TPS not reading correctly or a possible PCM. I wouldn't go buying a bunch of parts yet.
Since the problem is intermittent, I'd wipe the code out by disconnecting the vehicle battery for 15 seconds and go back to driving it. If the condition re-occurs and turns the light back on I'd recheck the codes and see if the same one came back or it was something else.