count the number of letters