act in accordance with the rules vs keep to the rules

act in accordance with the rules

keep to the rules

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