do something on the spur of the moment vs take it as it comes

do something on the spur of the moment

take it as it comes

How often have the words do something on the spur of the moment and take it as it comes occurred in a corpus of books? (source: Google Ngram Viewer )