letter count for a given text