changed letter counter to be char rather than string