friend in need vs knight in shining armor

friend in need

knight in shining armor

noun
  • A person who will rescue a dangerous situation; a hero. 

How often have the words friend in need and knight in shining armor occurred in a corpus of books? (source: Google Ngram Viewer )