#!/bin/bash
tr -cs A-Za-z\' '\n' | tr A-Z a-z | sort | uniq -c | sort -k1,1nr -k2 | sed ${1:-25}q


syntax highlighted by Code2HTML, v. 0.9.1