The Rohirrim were armoured heavy horse and in their famous charge had 6000.
The dothraki are more light horse and their weapons don't have much effect against plate armour (as show in the fight with Mormont in an earlier season).
Still the sheer numbers may win the day for the dothraki