Takes a list of newline separated items and sorts them from most appearances to least appearances. Was used in conjunction with Ryan Chartier's JSON extractor code so has hardcoded cases relating to that (for example, will also treat strings separated by semi-colons as discrete items when certain command-line arguments are used). Allows for a cutoff after [x] items, putting the remainder into an "other" category.
Output is in CSV format.