Hmm, I’m not sure exactly when that change was introduced, but there is a difference in how count-selected(.) is used in geoshape between the latest versions. Previously, it returned different numbers, which is probably why div 3 was used here and you needed to add -1. I’ll take a closer look to see what happened, but for now, the logic should be:
count-selected(.) div 4
because count-selected(.) returns the total number of elements, and each point consists of 4 values, as I mentioned above. That’s why we need to divide by 4. In previous versions, it seems it returned 3 for some points and 4 for others (as described here: ODK geofence (v1) ).
Please update the logic and let us know if it solves your problem.