ad-lib vs off the top of one’s head

ad-lib

verb
  • To improvise all or part of a speech or other performance, especially in comedy. 

off the top of one’s head

How often have the words ad-lib and off the top of one’s head occurred in a corpus of books? (source: Google Ngram Viewer )