procedure digitcnt: count digits in file
link digitcnt July 15, 1995; Ralph E. Griswold This file is in the public domain.
This procedure counts the number of each digit in a file and returns a ten-element list with the counts.