stats command - this could get pretty gnarly with lots of transactions so maybe we should add a limit at some point