update word counting

Change-Id: I301b3671d30782acc4fd0a4f8ee6a1baf847e6f1
Reviewed-on: https://gerrit.libreoffice.org/8968
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>