Section 9. If a verdict is rendered for the plaintiff upon one or more counts upon several and distinct claims, and for the defendant upon any others, each party shall recover costs for the travel and attendance of witnesses, for depositions and for other evidence produced, examined or used on the trial of the counts upon which the verdict is in his favor, but shall not recover for the like charges incurred on the trial of the other counts.