Hongmu Notes

🈸 Row duplication statistics

Count the number of occurrences of each item line by line, and support three sortings.

Instructions for use

  • Paste multiple rows of data and select the sorting method. Click "Start Statistics" to get the entries and times.
  • Three kinds of sorting: original order/number of times from largest to smallest/smallest to largest
  • Empty lines will also be counted. It is recommended to clear the empty lines and white space at both ends first.

What can this tool do?

  • Count the number of repetitions line by line and output a list of "items + number of occurrences"
  • Three kinds of sorting: original order/number of times from largest to smallest/smallest to largest
  • Results can be copied and exported to TXT
  • All is done locally in the browser, and the input content will not be uploaded.

Actual measurement effect

inputoutput (default order)
a
b
a
a
b
a appears 3 times
b appears 2 times

Only one item of the same content is output, and the number of times it appears in the input is given; different arrangements can be obtained by switching the sorting method.

Usage tips

  • It is recommended to clear the blanks at both ends before counting, otherwise "a" and "a" will be regarded as two
  • Empty lines will also be counted. If you need clean results, please filter the empty lines first.
  • The statistical results are plain text and can be exported to TXT for table sorting.

All keywords and tutorials 12

❓ FAQ

What does it count?
Treat each line as an entry and count how many times each entry appears. The result is one per line: entry + number of occurrences. Two lines with the same content count as one.
There are several ways to sort
Three types: in order of original data (first appearance), in order of times from large to small, and in order of times from small to large; switch the drop-down box and click statistics again.
Will empty lines be counted?
Yes. A blank line is also an item. If there are multiple blank lines in the text, a record of "blank line + number of times" will appear in the result (this is the original implementation without filtering).
Will the data be uploaded?
No. Statistics are completed locally in the browser, and input and results do not pass through the server or written to local storage.