The stat command outputs the total number of items processed and an average value of all items that meet the specified selection criteria.
stat file.reference {item.list} {selection.criteria} {(options)}
stat invoices with date > "1/1/05" amount Total = 73970 average = 1946.57 count = 38