Simple stats collection for Erlang