added first idea for string util countCharOccur function