--- from: http://rosettacode.org/wiki/Odd_word_problem