count sequences