Word count program implemented in various ways using core.std