change word length analysis

use unique characters number instead of word characters number