Counters are derived from the in-game armor/attack class system (bonus damage). They show the objective matchup skeleton, not cost-efficiency or micro.
Data from aoe2techtree.net (units, civs, tech), AoE Companion (build orders), and the r/aoe2 community. Age of Empires II is a trademark of Microsoft. Fan project, not affiliated with Microsoft.