How can I automatically update the word count from a Writer doc to Calc?

Hey guys. I’m writing my master thesis in Writer and having a detailed project planning in Calc, where I am tracking how many words I wrote so far.
I was curious if there is any way of doing this automatically.
I found this answer for Microsoft Office and I was wondering if something similar can be done in Libre Office.