If the owner and taker-up cannot agree in the amount for keeping said stray, it shall be decided by the associate circuit judge before whom the stray is proved, who shall take into consideration both the cost of keeping and the use and service of such stray.