Add algorithm for count each char in string and count number of needle in haystack.