unit compositions

I've heard it said a few times here to avoid learning 'counters', and instead focus on why certain things are strong in certain ways etc.  thus, if you're trying to defeat you opponent's army 'efficiently', you can ask yourself in which ways is his army weak, and thus in what ways you can make yours stronger.

does anyone have any idea how to go about learning these sorts of things?