The clerk or the judge shall tax the costs accruing in each action when it is determined and shall keep a duplicate of the costs bill on file among the original papers in the action. Each item of costs shall be enumerated in the bill.