extraction of tagged words from a tagged document

Hello everyone,

My goal is to tag hundrets of documents with tags from a predefined tag list, so I can later assign the tags in a Literature database.

Everything up until the Tagging of the document works fine, I have a list of Tags with multiple keywords each, which then are assigned if the keyword appears in the text.

I then plan to count the number of times keywords for a specific Tag occur, and then assign the tags based on the count of occurences.

However, I cannot find a suitable method for counting the amount of keywords in a tagged document. From my searching Tag filter → Bag of words creator → Group by seems to be the way, but I cannot find any references working with an own set of tags.

attached is my current workflow,

and an example of a tagged document

Any method I can extract and count the occurences?

Thanks a lot in advance!