allow counter update for inline elements