Adding small util to count chars in string