Ok so there‘s an easy and expensive way or a hard and cheap way to counter megaknight
The easy way is to use Pekka (good against E-Giant and e-barbs as well)
The hard way is to use a card such as prince, mini pekka, knight, bandit, or skeletons and a spirit, then learn perfect placement and timing to fully counter the megaknight