goofing off vs playing the wag

goofing off

playing the wag

How often have the words goofing off and playing the wag occurred in a corpus of books? (source: Google Ngram Viewer )