When any clerk receives payment of a judgment, he shall collect the costs and commissions of the sheriff, if execution has issued on such judgment.