Wiktionary
count one's blessings
vb. (context idiomatic English) To focus one's attention on the circumstances of one's life which are pleasant or fortunate, especially with the intention of diverting one's thoughts from serious or disagreeable matters.
Usage examples of "count one's blessings".
She'd had someone who'd rescued her, and Chloe believed one should always count one's blessings.