Refactor: move responsibility of counting characters to Word class