On the calculation of the number of feasible sequences in activity networks