To express one’s sympathetic pleasure or joy to the person(s) it is felt for.
To consider oneself fortunate in some matter.