pains vs slogging

pains

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

slogging

noun
  • An act or an instance of slogging or working laboriously. 

  • A beating or thrashing. 

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