act in accordance with the rules vs swim with the stream

act in accordance with the rules

swim with the stream

How often have the words act in accordance with the rules and swim with the stream occurred in a corpus of books? (source: Google Ngram Viewer )