As a sniper, you could say that Hanzo counters squishy heroes out of position, but he doesn't really hard-counter anyone other than Sombra, thanks to his Sonic Arrow's ability to reveal her while she's invisible.