records some statistics