count seq intermediate