Changed variable name 'char' to 'character_count'

Changed to a more meaningfull name to avoid confusion.