auto index count calculation ui behaviour