Simple and generic Counter application for erlang