I'm going to look at this from a different perspective, because I can think of an additional game where it could apply, and I have a little more experience in that game.
In Team Fortress 2, there are hard counters to every class. Snipers counter Heavies, Pyros counter Spies, Demomen Counter Engineers, et cetera.
The TF2 Wiki lists the hard counters TO those classes, or rather, it lists how each class measures up against it, because "which class should I use against X" is a common question.
The breakdown of which class works/doesn't work on different classes takes up a fairly substantial length of page on that Wiki, especially against complex classes with different loadout options.
And there are only 9 of them in this game.
I would consider a question of "How do I counter X class" for TF2 to be too broad, because there is no way to know what type of class the ASKER wants to play against them, and their ability to counter it is directly dependent on which class they are playing.
I haven't played much (okay, ANY) Dota 2, but I imagine the situation would be the same - it depends on which class you play, there are many classes with many different builds and strategies that can be employed against X class, and there are a LOT of Dota 2 characters. The question is too broad to answer all at once, and any 'definitive' answer will wind up being based on effectiveness, which is essentially an opinion answer.
Now, there is a legitimacy to this type of question, because players will very often get frustrated at not being able to deal with a particular character in a particular situation that is giving them trouble. So, what can we do?
We can answer for that specific situation
If a person wants to ask how to deal with Dota 2 Character on Mid when you're playing, say, a Support Class that said character might target frequently, and want to know how to avoid dying constantly to such a character or better yet, characters LIKE that character, that's something that can be answered very specifically without basing it too much on opinion. It's narrow enough that a person can offer an effective strategy in a single post, and not worry about veering into opinion-based answer wars.
This is fairly effective in TF2 answers, where there are specific classes that do specific things that you need to know how to counter, such as the Spy's ability to disguise, and how to tell if a friendly player is really a disguised spy. Each class has different ways to do this, but it's a very specific thing that they do, and they each have fairly reliable responses for that specific situation.