added oneid option
script to count sets of factors given one or a series of minmax values