pains vs problems

pains

noun
  • Trouble taken doing something; attention to detail; careful effort. 

problems

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