midshipman vs second-in-command

midshipman

noun
  • An officer of the lowest rank in several navies; especially, a trainee officer. 

  • A midshipman fish. 

second-in-command

noun
  • Somebody ranking next below a commander. 

  • Someone ranking next below the person in charge. 

How often have the words midshipman and second-in-command occurred in a corpus of books? (source: Google Ngram Viewer )