son of a gun vs thank gods

son of a gun

intj
  • Used to express anger, contempt, disgust, astonishment, disappointment, etc. 

noun
  • son of a bitch 

  • Used encouragingly or to compliment 

thank gods

intj
  • Used to express gratitude or relief. 

How often have the words son of a gun and thank gods occurred in a corpus of books? (source: Google Ngram Viewer )