Add character count for atom editor