consequently vs of necessity

consequently

adv
  • As a result or consequence of something; subsequently. 

of necessity

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