l2_input:optimize counter access

No match.