function for counting taxon occurrences in ptags, for word cloud