count distinct char in string a-z