midshipman vs sub-lieutenant

midshipman

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

  • A midshipman fish. 

sub-lieutenant

noun
  • A commissioned officer of the navy ranking above an acting sub-lieutenant and below a lieutenant. 

  • A commissioned officer of the Royal Navy ranking above a midshipman and below a lieutenant. 

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