count chars