pattern oneself on vs take a leaf out of someone's book

pattern oneself on

take a leaf out of someone's book

verb
  • To adopt an idea or practice of another person. 

How often have the words pattern oneself on and take a leaf out of someone's book occurred in a corpus of books? (source: Google Ngram Viewer )