Fixed wordcount bug, where array index = count - 1.