Said courts, in the exercise of their criminal jurisdiction may punish for contempts as in the exercise of their civil jurisdiction, and the county courts shall possess, in this respect, the same powers as the circuit courts.