Provides the default implementation as return getMax() - getMin() + 1;
This method is better to be redefined to take into consideration an
actual domain implementations.
To create a new goal on the javax.constraints level without necessity to go down to
the underlying CP solver, one needs to use a goal that will serve as an
implementation object.