Search double counting?

I’m trying to search for all notes that contain #tag1 and #tag2, and count how many there are.

Searching #tag1 #tag2 returns all the notes, but the results count is double the amount of actual notes.

Is there a way to have the search results number be the exact number of notes that contain both #tag1 and #tag2?