attain vs come by

attain

verb
  • To gain (an object or desired result). 

  • To reach or come to, by progression or motion; to arrive at (a place, time, state, etc.). 

  • To come or arrive, by motion, growth, bodily exertion, or efforts toward a place, object, state, etc. 

come by

verb
  • To obtain; to get, especially by chance or involuntarily. 

  • To come near to; to pass; to visit. 

intj
  • A command to a sheepdog to move clockwise around the sheep 

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