added letter count solution