having problems vs in agony

having problems

in agony

How often have the words having problems and in agony occurred in a corpus of books? (source: Google Ngram Viewer )