Fix count incrementation in sequence