be barking up the wrong tree vs confuse

be barking up the wrong tree

confuse

verb
  • to puzzle, perplex, baffle, bewilder (somebody); to afflict by being complicated, contradictory, or otherwise difficult to understand 

  • To mix up, muddle up (one thing with another); to mistake (one thing for another). 

  • To mix thoroughly; to confound; to disorder. 

  • To be confused. 

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