#!/bin/csh -f

# Report no. of scores appearing in a histogram or collection of
# histograms

echo -n 'No. of scores in histogram is '
cat $* | awk '{print $2}' | wc \
  | sed s':\([0-9][0-9]*[ 	]*\)[0-9][0-9]*\([ 	]*[0-9][0-9]*\):expr -\1+\2:' | /bin/csh -f
