as luck would have it vs thank heavens

as luck would have it

prep
  • by good fortune; fortunately or luckily. 

thank heavens

intj
  • An expression of relief 

How often have the words as luck would have it and thank heavens occurred in a corpus of books? (source: Google Ngram Viewer )