simplify glyph_count