Sequence count implementation