How can I create taxonomy table with frequency?