Changed to unique word count

Made word count a function.  Changed it so that is counts only the
unique words (‘the’ only gets counted once). This matches better with
the annotation array length