Add Total Payment and Count of payment and ranking