cautionary tale vs forewarning

cautionary tale

noun
  • A story, originally told in folklore, to warn its audience of a certain danger. 

forewarning

noun
  • An advance warning; an omen. 

How often have the words cautionary tale and forewarning occurred in a corpus of books? (source: Google Ngram Viewer )