play it by the book vs swim with the stream

play it by the book

swim with the stream

How often have the words play it by the book and swim with the stream occurred in a corpus of books? (source: Google Ngram Viewer )