stand in vs stand in lieu of

stand in

verb
  • To substitute for; to replace; (theater) to serve as an understudy. 

  • To make one of a party in a bet or other speculation. 

  • To take a side in a dispute. 

noun
  • A substitute; a replacement. 

stand in lieu of

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