changed ratecount api to dto object