The counsel for the State, and the accused or his counsel may question the witnesses on direct or cross examination. If no counsel appears for the State the magistrate may examine the witnesses.