be barking up the wrong tree vs be wrong

be barking up the wrong tree

be wrong

verb
  • To have an incorrect belief, to be mistaken about one's judgment or statement concerning something. (This entry is a translation hub.) 

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