distributed statistics client/server in erlang