bark up the wrong tree vs get something wrong

bark up the wrong tree

verb
  • To do, believe, or pursue something wrong or inappropriate; to take the wrong approach; to follow a false lead; to blame or rebuke the wrong person. 

get something wrong

How often have the words bark up the wrong tree and get something wrong occurred in a corpus of books? (source: Google Ngram Viewer )