--- /dev/null
+#include <stdio.h>
+
+main ()
+{
+ unsigned char buf;
+ int stat[256];
+ int c;
+ for (c = 0; c < 256; c++)
+ stat[c] = 0;
+ int ret;
+ do {
+ ret = read (0, &buf, 1);
+ stat[buf]++;
+ }
+ while (ret);
+ for (c = 0; c < 256; c++)
+ printf ("%03i:%04i\n", c, stat[c]);
+
+}