Added service for counting cost.