engrossed in vs having to cope with

engrossed in

having to cope with

How often have the words engrossed in and having to cope with occurred in a corpus of books? (source: Google Ngram Viewer )