Sub-Index for Critical Points of Distance Functions