What I'm looking for is the number of IDS where the minnumber or maxnumber is different within the same ID. For instance:
ID 12345 has 3 groups
Group min max
11111 19 25
22222 19 25
33333 19 25
ID 56789 has 3 groups
Group min max
44444 19 25
55555 23 25
66666 19 25
I would not want ID 12345 counted, but would want to count ID 56789 once. If there were two groups in ID 56789 I would still only want to count it once.