act in a polite way vs mind one's Ps and Qs

act in a polite way

mind one's Ps and Qs

How often have the words act in a polite way and mind one's Ps and Qs occurred in a corpus of books? (source: Google Ngram Viewer )