Hello and thanks for this amazing blog! Assuming we have that character vector (words) containing the words to count (which would need to be generated following some text mining I guess?), how about this in tidyverse: wordcounter <- data.frame(word= words) %>% count(word)