Creating a stateful server process (messages with counters)