give an undertaking vs solemnly promise

give an undertaking

solemnly promise

How often have the words give an undertaking and solemnly promise occurred in a corpus of books? (source: Google Ngram Viewer )