all there vs having all one’s marbles

all there

adj
  • Mentally competent; not absent-minded or insane. 

  • Used other than figuratively or idiomatically: see all, there. 

having all one’s marbles

How often have the words all there and having all one’s marbles occurred in a corpus of books? (source: Google Ngram Viewer )