In no case in any of the courts of this state, shall any fees for witnesses be taxed to exceed four witnesses, on each side, unless under the direction of the court, and in the court’s discretion the same may be necessary.