Gor Muldrak's last ability checks how many creatures each player controls as it resolves. If other abilities trigger at the beginning of your end step (such as the delayed triggered ability of an encore ability) you choose the order in which they resolve.