made a main that can read inputs and count letters. it also prints it to stdout and shows the count of letters and spaces