be someone's boyfriend vs have an affair with

be someone's boyfriend

have an affair with

How often have the words be someone's boyfriend and have an affair with occurred in a corpus of books? (source: Google Ngram Viewer )