Count the number of alphabets, spaces, digits and other characters in one line character