seqeconstraint function

Setting time constraints and the counting method