#!/bin/sh

if test $# -ne 1
then
    echo "usage: $0 FILE" > /dev/stderr
    exit 1
fi

cat $1 | tr -cs 'A-Za-z' '\n' | tr A-Z a-z | sort | uniq -c

