detect vs stumble upon

detect

verb
  • To discover or find by careful search, examination, or probing. 

  • To work or solve cases as a detective. 

stumble upon

verb
  • To discover or find something by accident. 

  • To meet somebody by chance. 

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