char count in given string without using libraries

Published --