How Can I Tally Items in a Text File?

Hey, Scripting Guy! How can I tally items in a text file?-- JA Hey, JA. If we understand you correctly you have a text file that consists of a number of lines, each line representing a particular item. Just to keep things simple, let’s say your text file consists of city names:City Seattle Seattle Los Angeles Chicago Seattle Los Angeles Pittsbur...