Added functions for Character Counting