You could use a SQL query similar to the one on the page you linked to calculate the count of the word but you would need to wrap the query in a macro somehow. Please see Davin Studer's answer on Query external database and display results on confluence page
It looks like you're new here. Sign in or register to get started.