simply get used to saying 'thank you'. I think it sets your mind up in a positive way to search out more reasons to say thank you if that makes sense....
If I am worried or concerened about something in the middle of the night, I shift my thoughts to something good that recently happened and say thank you for that in my mind. It makes you feel more positive.
Sounds a bit daft maybe, but I think it helps.