[algorithms][num_points] in the range_count class, include the test for n == 0
inside the same if as AddForOpen (much like the previous implementation for this
class)