recurse into the correct version of count_points