counting words

Hello,

I’d like to use a corpus of words like a frequency dictionary and compare how many of the words and how often have been used in a text. For example, creating two columns: one with the words from the frequnce dictionary and another with the text, arrange them alphabetically and do the count. Is this possible with LibreOffice?

Thank you!