vars = Array[x, 3000]; SatisfiabilityCount[ BooleanCountingFunction[{1000, 2000}, 3000] @@ vars, vars]