in two shakes (of a lamb's tail) vs on the spur of the moment

in two shakes (of a lamb's tail)

on the spur of the moment

How often have the words in two shakes (of a lamb's tail) and on the spur of the moment occurred in a corpus of books? (source: Google Ngram Viewer )