I\'ve figured out the Erlang-style loops: tail-recursion with functions that take all the \"variables that don\'t vary\":
%% does something, 80 bytes at a ti
It all depends on what you are using the counter for. Anything global like the number of messages handled by q system should use ets:update_counter. If it is not global I usually just include it in the parameters like you showed.