[erlang] Add recursive (and non-recursive) word count