Add totaling and sorting by frequency