Sure, but by that logic, anything that can learn counter>>>> everything that uses a physical attack.
Besides, you'd have to know I was going to use an attack to counter, and for all you know, I could buff instead, and then you get one shot. So, if you wanna take a risk, sure, but it isn't a strictly swampert thing. And it also isn't guaranteed. Like blaziken killing swampert is.