luarc: implement stats command.