wordcount code complete from panchuan