check counter value against 4 * L, not 4096