added total amount and number of transactions at the top of xml