JS Practice v2

3: Word count