genstats is a general statistics generator.
It takes any textfile and commandline parameters very similar to the 'cut'-command. That way, one can generate statistics on almost any textfile.
Generate a list of hostnames in /var/log/messages with the frequency of their occurence.
cat /var/log/messages | genstats -f 4 -v
1.2 compilation fix for macos x
I wrote andatool which does all of this in real-time.