added alternative versions of charcount examples