word count - D equivalent of the classic Cversion