Count the cost.