count chars - version 01
count chars - version 02.