mentally ill vs non compos mentis

mentally ill

adj
  • Having a psychological disorder. 

non compos mentis

adj
  • Insane; not of sound mind; not in control of oneself. 

How often have the words mentally ill and non compos mentis occurred in a corpus of books? (source: Google Ngram Viewer )