You are given a string str consisting of lowercase English alphabets. Your task is to determine and count the number of unique characters present in the string.
The first line of input contains a single string str.
Print a single integer representing the total count of unique characters.
The string consists only of lowercase English letters ('a' through 'z').
codingninjas
9
The given string “codingninjas” contains 9 unique characters: ‘c’, ‘o’, ‘d’, ‘i’, ‘n’, ‘g’, ‘j’,'a','s'.
madam
3
The unique characters in "madam" are 'm', 'a', and 'd'. The total count is 3.
The expected time complexity is O(N), where N is the length of the string.
1 <= N <= 10^5
`str` consists of lowercase English letters ('a'-'z').
Time limit: 1 sec